Bug 212049 - :is() / :where() parsing allows breaking shadow tree encapsulation
Summary: :is() / :where() parsing allows breaking shadow tree encapsulation
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar, WPTImpact
Depends on:
Blocks: 148695
  Show dependency treegraph
 
Reported: 2020-05-18 15:17 PDT by Emilio Cobos Álvarez (:emilio)
Modified: 2024-02-08 13:15 PST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emilio Cobos Álvarez (:emilio) 2020-05-18 15:17:06 PDT
I'm adding some tests in https://bugzilla.mozilla.org/show_bug.cgi?id=1632647. But TLDR, these shouldn't probably parse, or if you disagree they probably shouldn't match:

  ::part(foo):is([attr='value'])
  :host(:is(div .foo))
Comment 1 Ahmad Saleem 2023-05-27 09:56:23 PDT
Following WPT test was pushed as part of Mozilla bug: https://github.com/web-platform-tests/wpt/pull/23711/files

and we are only failing single test:

https://wpt.fyi/results/css/selectors/is-where-parsing.html?label=master&label=experimental&aligned&q=is-where-parsing.html

>>> Nested inside :host, with combinators

Don't know whether we have it as separate tracking or not but still adding 'BrowserCompat' and "WPTImpact' tags for future tracking.
Comment 2 Radar WebKit Bug Importer 2024-02-08 13:15:40 PST
<rdar://problem/122574812>