[csswg-drafts] [css-conditional] Is the `at-rule` function all that necessary? (#12997)

keithamus has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-conditional] Is the `at-rule` function all that necessary? ==
The `at-rule()` supports condition was recently added as a `<supports-feature>`. 

The syntax seems redundant to me, as no other grammars (to my knowledge) support the `at-keyword` token, therefore it seems plausible that we can simply write `@supports @rule`, rather than `@supports at-rule(@rule)`. This also makes the `CSS.supports` query more ergonomic; rather than `CSS.supports('at-rule(@rule)')` we can use `CSS.supports('@rule')`. 

Perhaps I'm missing something though?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12997 using your GitHub account


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

Received on Tuesday, 21 October 2025 14:51:00 UTC