[wpt-sync] Sync PR 35782 - [scroll-animations] Determine forced updates using style roots
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox107 fixed)
Tracking | Status | |
---|---|---|
firefox107 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
(Depends on 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 35782 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/35782
Details from upstream follow.
Anders Hartvoll Ruud <andruud@chromium.org> wrote:
[scroll-animations] Determine forced updates using style roots
For forced style updates on a single element (e.g. getComputedStyle),
we try to avoid updating the style and layout-tree if we know that
the next call to UpdateStyleAndLayoutTree will not affect that element.
Figuring this out involves traversing the ancestor chain of the target
element, looking for dirty-flags and the like.However, with the introduction of scroll-timelines, it is no longer
sufficient to traverse the ancestor chain, because the named timeline
lookup can reach previous siblings (and previous siblings of all
ancestors). We probably don't want to traverse all of those siblings,
so instead this CL suggests basing the optimization on whether or not
there is a style recalc/invalidation root in the ancestor chain.
This makes it possible to solve the problem of scroll-timelines/
siblings by checking the parent element of the style root against the
the parent of the target element.Bug: 1317765
Change-Id: Ic13587ce7535da02aeb00699e29c26ee867eb249
Fixed: 1356493
Reviewed-on: https://chromium-review.googlesource.com/3859628
WPT-Export-Revision: e4e61eabdbc4e71697dc6212c0a489de2fcadeee
Assignee | ||
Comment 1•2 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=2bef8b5c6bd051a9503d09c8bd9e64a30e03f72c
Assignee | ||
Comment 2•2 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 1 subtests
Status Summary
Firefox
OK
: 1
FAIL
: 1
Chrome
OK
: 1
FAIL
: 1
Safari
OK
: 1
FAIL
: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /scroll-animations/css/scroll-timeline-sibling-gcs.html [wpt.fyi]
- Timelines appearing on preceding siblings are visible to getComputedStyle:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Timelines appearing on preceding siblings are visible to getComputedStyle:
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b02b382bb0d7 [wpt PR 35782] - [scroll-animations] Determine forced updates using style roots, a=testonly https://hg.mozilla.org/integration/autoland/rev/68f5e8542775 [wpt PR 35782] - Update wpt metadata, a=testonly
Comment 4•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b02b382bb0d7
https://hg.mozilla.org/mozilla-central/rev/68f5e8542775
Description
•