WPT css/css-grid/alignment/grid-content-alignment-second-pass-002.html fails in Firefox, due to needing a second pass to re-resolve grid-template-rows percent values
Categories
(Core :: Layout: Grid, defect)
Tracking
()
People
(Reporter: dholbert, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
|
329 bytes,
text/html
|
Details |
We fail this WPT test:
https://wpt.fyi/results/css/css-grid/alignment/grid-content-alignment-second-pass-002.html
At least for the first subtest, the issue is that we're not honoring the percent-sized grid-template-rows value (expressed in the grid shorthand). Reduced testcase attached.
The percent size here is a bit tricky, since there's no explicit height on the container for the percent value to resolve against. It seems we need to do a second percent-resolving pass (as hinted by the name of the WPT test) after we've resolved an initial measurement for the height of the grid container.
STR with reduced testcase:
- Load attached testcase.
EXPECTED RESULTS:
Mostly-lime rectangle with small strip of orange at the top.
ACTUAL RESULTS:
Fully orange rectangle, no lime visible.
Updated•2 years ago
|
Comment 1•1 year ago
|
||
Bug 1481876 fixed grid-content-alignment-second-pass-002.html.
| Reporter | ||
Comment 2•1 year ago
|
||
(In reply to Ting-Yu Lin [:TYLin] (PDT, UTC-7) from comment #1)
Bug 1481876 fixed
grid-content-alignment-second-pass-002.html.
BTW, this doesn't show up on wpt.fyi currently, since we don't have layout.css.grid-multi-pass-track-sizing.enabled turned on by default yet.
Description
•