[wpt-sync] Sync PR 34047 - [@container] Support container-relative units in gradients
Categories
(Core :: Layout, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox102 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 34047 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/34047
Details from upstream follow.
Anders Hartvoll Ruud <andruud@chromium.org> wrote:
[@container] Support container-relative units in gradients
Units in gradients are resolved outside of style resolution, using a
separate CSSToLengthConversionData object. (The main object being part
of StyleResolverState). At the time the gradients are produced, we don't
have enough context to pass the nearest container to the
CSSToLengthConversionData constructor.This CL solves that by eagerly fetching container sizes during
ElementStyleResources::LoadPendingResources, and storing those sizes
on StyleGeneratedImage (which is created during style resolution).Note that invalidation does not work yet.
Bug: 1223030, 1313084
Change-Id: I2373bca3dbadb9129975f62b49c15e5631a033e6
Reviewed-on: https://chromium-review.googlesource.com/3645211
WPT-Export-Revision: f1d4229281fe57647dadb639ccab1c2a9deb635a
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=589aec907c83231d2917c720e7aed0525b8271f6
Assignee | ||
Comment 2•2 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=fdcc22fae8b573644f9421200709a98798bd38dc
Assignee | ||
Comment 3•2 years ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests
Status Summary
Firefox
FAIL
: 1
Chrome
FAIL
: 1
Safari
FAIL
: 1
Links
Details
New Tests That Don't Pass
- /css/css-contain/container-queries/container-units-gradient.html [wpt.fyi]:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7c50b1ae8ed5 [wpt PR 34047] - [@container] Support container-relative units in gradients, a=testonly https://hg.mozilla.org/integration/autoland/rev/8e640a8ee02c [wpt PR 34047] - Update wpt metadata, a=testonly
Comment 5•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7c50b1ae8ed5
https://hg.mozilla.org/mozilla-central/rev/8e640a8ee02c
Description
•