number-style-inheritance.html fails with non-native theme.
Categories
(Core :: Widget, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox87 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
Details
(Whiteboard: fission-nnt)
Attachments
(2 files, 1 obsolete file)
Assignee | ||
Comment 1•4 years ago
|
||
With non-native theme, number inputs have zero padding-inline-end by
default, so otherwise the test would fail by a few pixels.
Comment 2•4 years ago
|
||
Comment 3•4 years ago
|
||
Hmm, I feel like this test-failure is actually pointing out a bug (or at least a notable behavior-change).
In Gecko, Blink, WebKit, and EdgeHTML (Edge 18), <input type="number">
is always the same size as a similarly-styled textfield. (Each pair of widgets in my attached testcase have the same width.) But when I enable the non-native theme, then the number widget ends up being a little bit skinnier. That's why the reftest is failing.
That invariant seems like something intentional, and something that we should be wary about changing... Perhaps that's really what we should be fixing here?
Assignee | ||
Comment 4•4 years ago
|
||
This means that the number input by default shows some white space to
the right of the spinners. I think it's probably not the end of the
world, and depending on the different trade-offs we might want to do
this instead of fixing the test.
Depends on D103270
Assignee | ||
Comment 5•4 years ago
|
||
So, on one hand, you're right, and it's a known issue (in the sense that I know it's caused by this line).
That being said, this test is only testing for text-decoration to apply to the number input, so it doesn't seem the right to test that sizing there, and it's the only remaining number input failure.
So, would you be fine landing the test fix for now, and moving the patch in comment 4 to some follow-up? I suspect that might need a bit of discussion since that diverges from the UX designs and so on...
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 8•4 years ago
|
||
Comment on attachment 9199722 [details]
Bug 1689231 - Remove number-input padding special-case so that we size them the same way as text controls. r=spohl,mstange
Revision D103271 was moved to bug 1689477. Setting attachment 9199722 [details] to obsolete.
Updated•4 years ago
|
Comment 9•4 years ago
|
||
bugherder |
Description
•