Open
Bug 1317206
Opened 9 years ago
Updated 3 years ago
[css-grid] Empty <select> elements doesn't stretch in the inline-axis
Categories
(Core :: Layout: Grid, defect)
Core
Layout: Grid
Tracking
()
NEW
| Tracking | Status | |
|---|---|---|
| firefox52 | --- | wontfix |
People
(Reporter: MatsPalmgren_bugz, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: testcase)
Attachments
(4 files)
|
1.03 KB,
patch
|
dholbert
:
review-
|
Details | Diff | Splinter Review |
|
15.38 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.70 KB,
text/html
|
Details | |
|
67.36 KB,
image/png
|
Details |
data:text/html,<div style="display:grid; grid:100px/100px"><select></select></div>
Similar problems:
data:text/html,<div style="display:grid; grid:100px/200px"><progress></progress></div>
| Reporter | ||
Comment 2•9 years ago
|
||
Stretching <progress> grid items seems to work fine for me in the latest Nightly.
| Reporter | ||
Comment 3•9 years ago
|
||
There is a small web-compat risk with this patch, since if an author have
specified a 'width' that is smaller than 2.5em this new 'min-inline-size'
will force it to 2.5em. It's easy to workaround though (add min-width:0),
and empty <select>s are likely very rarely used.
Attachment #8810689 -
Flags: review?(dholbert)
| Reporter | ||
Comment 4•9 years ago
|
||
| Reporter | ||
Comment 5•9 years ago
|
||
Comment 6•9 years ago
|
||
(In reply to Mats Palmgren (:mats) from comment #3)
> There is a small web-compat risk with this patch, since if an author have
> specified a 'width' that is smaller than 2.5em this new 'min-inline-size'
> will force it to 2.5em. It's easy to workaround though (add min-width:0),
> and empty <select>s are likely very rarely used.
Sorry for not replying sooner here. The patch is trivial, but this risk troubles me a bit.
What if we simply removed this min-width instead? That seems strictly lower-risk to me, because:
* On my system at least, *native-themed* empty <select> elements (i.e. those with default styling) seem to render at the same size, regardless of whether this style is present of not. So they're not actually relying on this "inline-size" styling.
* If I remove this line entirely, then unthemed empty <select> elements do indeed collapse away to nothing. However, that seems fine to me from a compat perspective, because that's what happens in Chrome as well (for both themed + unthemed <selects> actually).
If we're making a somewhat-arbitrary behavior change here, it seems like we should be changing in a direction that's closer to being compatible with other browsers. What do you think?
Comment 7•9 years ago
|
||
Here's the testcase I'm using locally to probe our & Chrome's behavior on these elements, BTW.
Comment 8•9 years ago
|
||
Here's a screenshot comparing testcase 1 in these browsers:
Nightly | Nightly w/ 'fix' | Nightly w/ alternative patch | Chrome
("alternative patch" = simply dropping the rule that you're touching here)
I've circled every case that I noticed where one Nightly configuration differs from the other two Nightly configuration. In each of these cases where possible-Nightly-versions disagree with each other, "alternative patch" consistently agrees with Chrome's rendering, meaning it's probably more likely to be web-compatible now & into the future. (Unless there's a reason we should disagree with its/Chrome's rendering.)
Updated•9 years ago
|
Flags: needinfo?(mats)
Comment 9•9 years ago
|
||
Attachment #8810689 -
Flags: review?(dholbert) → review-
Comment 10•8 years ago
|
||
Mass wontfix for bugs affecting firefox 52.
Comment 11•3 years ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Assignee: MatsPalmgren_bugz → nobody
Comment 12•3 years ago
|
||
Clear a needinfo that is pending on an inactive user.
Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as INCOMPLETE.
For more information, please visit auto_nag documentation.
Flags: needinfo?(MatsPalmgren_bugz)
Updated•3 years ago
|
Severity: minor → S4
Updated•3 years ago
|
Component: Layout → Layout: Grid
You need to log in
before you can comment on or make changes to this bug.
Description
•