Bug 1841273 [wpt PR 40830] - [@scope] Improve sibling invalidation, a=testonly
commita91202eee403e2d223b78c499f2f4d8cc870728c
authorAnders Hartvoll Ruud <andruud@chromium.org>
Fri, 7 Jul 2023 11:11:47 +0000 (7 11:11 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 12 Jul 2023 07:54:07 +0000 (12 07:54 +0000)
treef0c0c4ddd60e10c087dc9481d6401382b416e344
parentf7dc30ef501f754b626a163c99372812556a036d
Bug 1841273 [wpt PR 40830] - [@scope] Improve sibling invalidation, a=testonly

Automatic update from web-platform-tests
[@scope] Improve sibling invalidation

ExtractInvalidationSetFeaturesFromCompound is supposed to return
the last simple selector of the compound, but did not account for
the kScopeActivation relation, which acts identically to kSubSelector
in this situation. This would cause unexpected behavior for selectors
with :scope (and therefore a kScopeActivation) in the subject, since
we would not be on a "true" combinator boundary after the call to
ExtractInvalidationSetFeaturesFromCompound.

Bug: 1451091
Change-Id: I550ccf87c54c0202f2aa46c856f1a53f218b783f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4660044
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1165257}

--

wpt-commits: 8dd4ccfe0629a7a39c8d999e86058984d2c4d438
wpt-pr: 40830
testing/web-platform/tests/css/css-cascade/scope-invalidation.html