[wpt-sync] Sync PR 26078 - [:is/:where] Avoid scope-contains-last-matched-element check
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox84 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 26078 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/26078
Details from upstream follow.
b'Anders Hartvoll Ruud <andruud@chromium.org>' wrote:
[:is/:where] Avoid scope-contains-last-matched-element check
As far as I can tell, this check exists to ensure that complex
Shadow DOM v0 selectors don't cross any boundaries they shouldn't
(see Issue 360679).The problem is that for e.g. ::part(foo):is(:focus), the :focus part
is detected as an illegal boundary crossing, since the TreeScope of
context.scope and context.element are different.This function doesn't seem entirely right to me, but at this point
I want to touch Shadow DOM v0 as little as possible, since it's very
close to being removed. Hence I'm basically just disabling the check
for :is/:where.Bug: 568705
Change-Id: I2febcd37c9772b11f91ae93df87acb7649a8de91
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2464263
Reviewed-by: Rune Lillesveen \<futhark@chromium.org>
Commit-Queue: Anders Hartvoll Ruud \<andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#816112}
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 1•5 years ago
|
||
| Assignee | ||
Comment 2•5 years ago
|
||
CI Results
Ran 12 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests
Status Summary
Firefox
TIMEOUT: 1
Chrome
TIMEOUT: 1
Safari
TIMEOUT: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
/css/css-shadow-parts/interaction-with-nested-pseudo-class.html: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
Comment 4•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/9192fb731839
https://hg.mozilla.org/mozilla-central/rev/899fd9a8629a
Description
•