Bug 302433

Summary: Implement name only container queries
Product: WebKit Reporter: Adam Argyle <atom>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: afrehner.work, koivisto, ntim, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Adam Argyle
Reported 2025-11-12 16:41:18 PST
WPTs https://wpt.fyi/results/css/css-conditional/container-queries/query-container-name.html?label=master&label=experimental&aligned&q=container-name ``` .example { container-name: --foo } @container --foo { #target { color: green } } ``` this subtle feature has high value, enabling many meaningful usecases. authors expressing interest: - https://blog.kizu.dev/named-container-presence-check/ - https://nerdy.dev/components-can-know
Attachments
Anthony Frehner
Comment 1 2025-11-12 16:44:38 PST
I'm hoping to make the patch for this.
Radar WebKit Bug Importer
Comment 2 2025-11-13 10:42:52 PST
EWS
Comment 3 2025-12-12 16:36:34 PST
Committed 304388@main (6b8d8d4d09fe): <https://commits.webkit.org/304388@main> Reviewed commits have been landed. Closing PR #54667 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.