Bug 271086

Summary: [css-cascade] @scope with :host/:host() or when implicit at top level of shadow root doesn’t apply
Product: WebKit Reporter: Nathan Knowler <nathan>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, dassonville.andrew, karlcow, koivisto, m_dubet, nathan, ntim, webkit-bug-importer
Priority: P2 Keywords: BrowserCompat, HasReduction, InRadar
Version: Safari 17   
Hardware: All   
OS: All   
Attachments:
Description Flags
Reduction of implicit @scope and :host/:host() as @scope starting root not working in shadow roots none

Nathan Knowler
Reported 2024-03-15 15:45:22 PDT
Created attachment 470394 [details] Reduction of implicit @scope and :host/:host() as @scope starting root not working in shadow roots Using an implicit `@scope` at the top level of a shadow root doesn’t work. Also, using `:host` or `:host()` don’t work as the starting root.
Attachments
Reduction of implicit @scope and :host/:host() as @scope starting root not working in shadow roots (1.12 KB, text/html)
2024-03-15 15:45 PDT, Nathan Knowler
no flags
Ahmad Saleem
Comment 1 2024-03-15 21:00:02 PDT
Safari Technology Preview 190 is matching with Firefox Nightly 125 and don't have all texts in pink while Chrome Canary 124 have them in pink.
Nathan Knowler
Comment 2 2024-03-15 21:05:59 PDT
(In reply to Ahmad Saleem from comment #1) > Safari Technology Preview 190 is matching with Firefox Nightly 125 and don't > have all texts in pink while Chrome Canary 124 have them in pink. That’s what I’ve observed also. As far as I know Firefox doesn’t have @scope support at all yet though.
Ahmad Saleem
Comment 3 2024-03-15 21:47:39 PDT
Just to update - WebKit ToT (276222@main) - via Minibrowser - it is still reproducible.
Radar WebKit Bug Importer
Comment 4 2024-03-22 15:46:13 PDT
Note You need to log in before you can comment on or make changes to this bug.