Closed Bug 1789221 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 35726 - [scroll-animations] NodeLayoutUpgrade considers interleaving roots only

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox107 fixed)

RESOLVED FIXED
107 Branch
Tracking Status
firefox107 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 35726 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/35726
Details from upstream follow.

Anders Hartvoll Ruud <andruud@chromium.org> wrote:

[scroll-animations] NodeLayoutUpgrade considers interleaving roots only

During forced style updates (e.g. getComputedStyle), we currently have
logic which tries to find ComputedStyles above the target node which
depend on size-container-queries. This does not work anymore for the
named scroll-timelines, because we also need to take into account
the preceding siblings of all inclusive ancestors.

Since doing all of that traversal is not desirable, this CL suggests
to instead simplify the logic such that we do layout upgrades whenever
the target element is inside a container. This means we'll do more
layout upgrades than before, but there really isn't a (better)
alternative.

Bug: 1317765
Change-Id: Id23a483761b1a30e6dfc37f45253c6a2740d41c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3865318
Auto-Submit: Anders Hartvoll Ruud \<andruud@chromium.org>
Commit-Queue: Anders Hartvoll Ruud \<andruud@chromium.org>
Reviewed-by: Rune Lillesveen \<futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1043140}

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

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5f672fb647e5
[wpt PR 35726] - [scroll-animations] NodeLayoutUpgrade considers interleaving roots only, a=testonly
https://hg.mozilla.org/integration/autoland/rev/b565f3fc6ae9
[wpt PR 35726] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
You need to log in before you can comment on or make changes to this bug.