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

Selectors within property (or descriptor) values just look wrong. 

Many but not all at-rules agree to the pattern `@rule identifier {descriptor: value;}`. 
I wish this one would use one of the other approaches, e.g.:
- `@state checkbox: input[type="checkbox"];` or
- `@state input[type="checkbox"] {name: checkbox;}`.

I know that _theoretical purity_ is low on the list of priorities for syntax decisions. 

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


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

Received on Tuesday, 22 July 2025 08:03:47 UTC