Re: [csswg-drafts] [selectors] Declarative custom `:state()` states (#12502)

A comment directed to the proposal, itself:

Would there be any means of nesting queries (media / container / style) inside of these declarations, or would it make resolving the tree too unweildy?

eg: 
```css
@state an-important-one {
  @media(width: 20ch <= 100% < 80ch) {
   matches: .important, .notification, .warning;
  }
  @media(width: 80ch <= 100vw) {
    matches: .emergency;
  }
} 
```

-- 
GitHub Notification of comment by seanmay
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12502#issuecomment-3091450630 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 19 July 2025 03:06:39 UTC