Bug 1788443 [wpt PR 35671] - [scroll-animations] Recalculate siblings for display...
commit0158b36424dbe31e769aee244db57b3ea0399600
authorAnders Hartvoll Ruud <andruud@chromium.org>
Sat, 3 Sep 2022 09:58:29 +0000 (3 09:58 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sun, 4 Sep 2022 18:00:45 +0000 (4 18:00 +0000)
treea28807caad37b70205c829d61e650c14de89b2c4
parent06028308f7e87e5d888230a19e3e4d542169fdd0
Bug 1788443 [wpt PR 35671] - [scroll-animations] Recalculate siblings for display:none and similar, a=testonly

Automatic update from web-platform-tests
[scroll-animations] Recalculate siblings for display:none and similar

We already recalculate subsequent siblings whenever the computed value
of scroll-timeline-name/axis changes, however this only applies when
both the old and new style exist. In other words, it does not work
properly when transitioning to/from display:none, or other cases where
an element is inserted/removed.

Fixed by returning kSiblingDescendantAffecting whenever a ComputedStyle
appears or disappears with a non-empty scroll-timeline-name.

Bug: 1317765
Change-Id: I904d448ad591d6c8a396af718cc2f0b91f7b211a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3859615
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Reviewed-by: Robert Flack <flackr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1040864}

--

wpt-commits: 527425c9a9e51c7e2b7205c2da6663b85877f1c6
wpt-pr: 35671
testing/web-platform/tests/scroll-animations/css/animation-timeline-named-scroll-progress-timeline.tentative.html