Implement parsing for masonry using new keywords `display:grid-lanes` / `inline-grid-lanes`
Categories
(Core :: Layout: Grid, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox159 | --- | fixed |
People
(Reporter: dholbert, Assigned: tlouw)
References
(Blocks 6 open bugs)
Details
Attachments
(2 external files)
Spinning this off from bug 1991204 to implement masonry as a display value.
The actual value is TBD - it's currently display:something in the spec :) -- but the existing WPTs use[1] display:masonry and display:inline-masonry, so we should use that (behind a pref, because that's not what will actually ship) to enable the appropriate behavior for those tests.
[1] see e.g. here: https://searchfox.org/firefox-main/source/testing/web-platform/tests/css/css-grid/masonry/tentative/alignment/masonry-align-content-001.html#23
and here: https://searchfox.org/firefox-main/source/testing/web-platform/tests/css/css-grid/masonry/tentative/baseline/masonry-grid-item-content-baseline-001.html#20
| Reporter | ||
Comment 1•1 year ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #0)
the existing WPTs use[1]
display:masonryanddisplay:inline-masonry, so we should use that (behind a pref, because that's not what will actually ship) to enable the appropriate behavior for those tests.
(As noted in the spec "issue 2" box (https://drafts.csswg.org/css-grid-3/#issue-1224e16e ), the discussion about the actual final display value is happening in https://github.com/w3c/csswg-drafts/issues/12022 . But that'll just be a trivial switcheroo once that's settled.)
Comment 2•1 year ago
|
||
For other masonry related properties, I saw in the css-grid-3's recent changes section https://drafts.csswg.org/css-grid-3/#recent-changes
Introduced item-flow and the item-* longhands, replacing masonry-flow and related properties. (Issue 11480)
So it appears that the parsing tests for masonry-flow, etc in https://wpt.fyi/results/css/css-masonry/tentative/parsing?label=master&label=experimental&aligned&q=masonry are out-of-date.
Comment 3•1 year ago
|
||
RESOLVED: masonry switch will be display: grid-lanes
https://github.com/w3c/csswg-drafts/issues/12022#issuecomment-3525043825
| Assignee | ||
Comment 4•1 year ago
|
||
Use the "display: grid-lanes" value to conform to current usage in web
platform tests.
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 7•11 months ago
|
||
Backed out for causing assertion failures @ nsCSSFrameConstructor.cpp
Backout link: https://hg.mozilla.org/integration/autoland/rev/6fb14d9268d3e32063cc78c1c5246980488aec70
| Assignee | ||
Comment 8•11 months ago
|
||
Hit assert due to missing switch for ::GridLanes in frame constructor. Fixing.
Comment 9•10 months ago
•
|
||
Heads up, the inline-grid-lanes keyword is currently still under debate. In https://github.com/w3c/csswg-drafts/issues/10961#issuecomment-3829784658 I posted a formal objection against the resolution to add it. Also see the following comments. This doesn't have influence on the two-keywords value inline grid-lanes, though.
Sebastian
Updated•3 months ago
|
Updated•3 months ago
|
| Reporter | ||
Updated•2 months ago
|
Comment 10•2 months ago
|
||
Comment 11•2 months ago
|
||
Comment 12•2 months ago
|
||
Backed out for causing wr and wpt tests failures at grid-lanes
Backout Link
Push with failures
Failure Log
Failure line TEST-UNEXPECTED-PASS | /css/css-grid/grid-lanes/alignment/column-justify-items-end-justify-self-start-001.html | Testing http://web-platform.test:8000/css/css-grid/grid-lanes/alignment/column-justify-items-end-justify-self-start-001.html == http://web-platform.test:8000/css/css-grid/grid-lanes/alignment/column-justify-items-end-justify-self-start-001-ref.html
wpt
| Assignee | ||
Comment 13•2 months ago
|
||
Issue is an intermittent failure, added the expectation.
Comment 14•2 months ago
|
||
Comment 15•2 months ago
|
||
Comment 16•2 months ago
|
||
Backed out for causing WR failures @ /css/css-anchor-position/grid-lanes-position-area-basic.html
Backout link: https://hg.mozilla.org/integration/autoland/rev/1b3cc64d718a08b0f6e2fe50e6ee96f5927babdc
Failures log ->TEST-UNEXPECTED-FAIL | /css/css-anchor-position/grid-lanes-position-area-basic.html
| Reporter | ||
Comment 17•2 months ago
|
||
That one look like a (perhaps Android-only) off-by-1px issue -- the pink Anchored div is 1px further down in the testcase as compared to the reference case.
For that one, we probably want to restore the .ini file and change its expectation to
expected:
if os == "android": FAIL
Comment 18•2 months ago
|
||
Comment 19•2 months ago
|
||
Comment 20•2 months ago
|
||
Backed out for causing failures at grid-lanes-item-placement-002.html.
Backout link: https://hg.mozilla.org/integration/autoland/rev/a5fd1083b2e0
Push with failures: https://treeherder.mozilla.org/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel&revision=2a83e02a4e6e5d73d7010a73efedc4ba3c22fb93&searchStr=wr
Comment 21•2 months ago
|
||
Comment 22•2 months ago
|
||
Backed out for causing failures at row-flex-track-intrinsic-sizes.html.
Backout link: https://hg.mozilla.org/integration/autoland/rev/7dcbb9a29e5d
Failure log: https://treeherder.mozilla.org/logviewer?job_id=590858049&repo=autoland&task=PVk3_R4sToK1zblrwIFQxg.0&lineNumber=1490
Comment 23•2 months ago
|
||
Comment 24•2 months ago
|
||
Comment 25•2 months ago
|
||
Reverted this because it was causing wpt failures.
- Revert link
- Push with failures
- Failure Log
- Failure line: PROCESS-CRASH | 71242aff-cceb-00a2-e10f-b14c7fef7f30 | MOZ_RELEASE_ASSERT(item->mFrame == oof) [@ nsGridContainerFrame::MasonryLayout] | /css/css-break/grid/grid-lanes/column-grid-lanes-oof-fragmentation-005.html
Comment 26•2 months ago
|
||
Please also check this wpt failure.
Comment 27•2 months ago
|
||
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/62825 for changes under testing/web-platform/tests
Comment 29•2 months ago
|
||
Comment 30•2 months ago
•
|
||
Backed out for causing wr and wpt test failures
Backout Link
Push with failures wr
wpt
Failure Log
Failure Log
Upstream PR was closed without merging
Comment 32•2 months ago
|
||
Comment 33•2 months ago
|
||
Comment 34•2 months ago
|
||
Backed out for causing mulitple wpt/wr failures
Backout link: https://hg.mozilla.org/integration/autoland/rev/2e8c0bd6f4d15a390a2f65376a4be07b29fcc105
Comment 35•2 months ago
|
||
Comment 36•2 months ago
|
||
Comment 37•2 months ago
|
||
Backed out for causing failures at column-gap-decorations-inset-overlap-negative.html.
Backout link: https://hg.mozilla.org/integration/autoland/rev/289ffa4de2f1
Failure logs:
https://treeherder.mozilla.org/logviewer?job_id=594760222&repo=autoland&task=OFqeIjQ2RIaIVpgD8o_0oA.0&lineNumber=1756
https://treeherder.mozilla.org/logviewer?job_id=594772926&repo=autoland&task=JymZNqV1RyCF70yr6NdN7w.0&lineNumber=3039
Comment 38•2 months ago
|
||
Comment 39•2 months ago
|
||
Comment 40•2 months ago
|
||
Backed out for causing wr failures @ column-negative-margin-003.html
Comment 41•2 months ago
|
||
Comment 42•2 months ago
|
||
Comment 43•2 months ago
|
||
Backed out for causing WR failures
Backout link: https://hg.mozilla.org/integration/autoland/rev/a0e0962524bb49ae5ee8c4c83cdb30b7eae4c4bf
| Reporter | ||
Comment 44•2 months ago
•
|
||
(In reply to Sandor Molnar[:smolnar] from comment #43)
This^ failure is bug 2054343, unrelated to this bug (and Boris is working on it).
This^ one is indeed part of this bug (failure in grid-lanes/row-single-lane-fragmentation-002.html). That test seems to pass in current mozilla-central per wpt.fyi, likely by accident (because we use a block container instead of a grid-lanes container, and the layout with a block container happens to produce the rendering that the test expects). So we need to add an annotation for that one, to mark it as expected-fail.
Upstream PR was closed without merging
Comment 46•2 months ago
|
||
Comment 47•2 months ago
|
||
Updated•2 months ago
|
Comment 49•2 months ago
|
||
Comment 50•2 months ago
|
||
Comment 51•2 months ago
|
||
Comment 52•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/1333eacacf6c
https://hg.mozilla.org/mozilla-central/rev/6ff73b17547d
https://hg.mozilla.org/mozilla-central/rev/23c57e1ef31f
Upstream PR merged by moz-wptsync-bot
Comment 54•2 months ago
|
||
| bugherder | ||
Updated•2 months ago
|
Comment 55•2 months ago
|
||
Did you want to nominate this for a Nightly relnote? If so, set the relnote-firefox flag to "?"
https://wiki.mozilla.org/Release_Management/Release_Notes_Nomination
Possible wording:
Starting with Firefox 159, Firefox Nightly supports the
grid-lanesandinline-grid-lanesvalues of the CSSdisplayproperty for masonry-style layouts.
| Assignee | ||
Comment 56•2 months ago
|
||
At this time, I don't think a relnote is needed. This was mostly done for investigation and assessment.
Updated•1 month ago
|
Description
•