[: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/+/2464263Reviewed-by:Rune Lillesveen <futhark@chromium.org> Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#816112}
Showing
Please register or sign in to comment