Bug 212049

Summary: :is() / :where() parsing allows breaking shadow tree encapsulation
Product: WebKit Reporter: Emilio Cobos Álvarez (:emilio) <emilio>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, bfulgham, koivisto, rniwa, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: BrowserCompat, InRadar, WPTImpact
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 148695    

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>