Closed Bug 1499230 Opened 3 years ago Closed 3 years ago

Inline-size is too wide for empty <select> lists compared to other UAs


(Core :: Layout: Form Controls, enhancement, P4)




Tracking Status
firefox64 --- fixed


(Reporter: mats, Assigned: mats)



(Keywords: testcase)


(2 files, 1 obsolete file)

Attached file Testcase (obsolete) —
Edge and Chrome renders the testcase as expected: the <select>
content-box width appears to be zero in all cases.

I tend to think we should follow their example.
(Safari renders the first row a bit like us, but fails
completely in the 2nd row)

Note, you need the fix in bug 1499127 for the height
to be correct in the first row.
Attached file Testcase
Attachment #9017351 - Attachment is obsolete: true
This patch also makes the reference for the test added in bug 1499127
render correctly, so we can enable that test now.
Attachment #9018033 - Flags: review?(emilio)
Comment on attachment 9018033 [details] [diff] [review]
Make empty <select>s have zero content-box inline-size, like in other UAs

Review of attachment 9018033 [details] [diff] [review]:

So, this looks like it was introduced initially in:

which has no bug number or anything else

Then changed to two X in:

Which is bug 28593...

Then Boris actually changed it for the :empty rule we have today.

Anyway, this looks fine to me, thanks!
Attachment #9018033 - Flags: review?(emilio) → review+
Pushed by
Make empty <select>s have zero content-box inline-size, like in other UAs.  r=emilio
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Created web-platform-tests PR for changes under testing/web-platform/tests
You need to log in before you can comment on or make changes to this bug.