[csswg-drafts] [css-conditional] Unclear what is and isn't a descriptor for at-rule() (#11118)

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

== [css-conditional] Unclear what is and isn't a descriptor for at-rule() ==
https://github.com/w3c/csswg-drafts/issues/2463 resolved to add `at-rule(@foo; descriptor: value)`, but I think there are several cases where it's not clear if something should be considered a descriptor or not. For example:

- Do `@page` (/margin) rules hold descriptors or properties? (They do not apply to _elements_, in which case [they are arguably descriptors](https://drafts.csswg.org/css-syntax/#css-descriptor).)
- The accepted things within [@position-try](https://drafts.csswg.org/css-anchor-position-1/#fallback-rule) are described as both properties _and_ descriptors by css-anchor-position-1.
- I'm sure there are other cases.

We should probably just avoid this problem by instead specifying `at-rule(@foo; <declaration>)`, and evaluate to true whenever that declaration (whatever it is) would be valid within `@foo`.

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


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

Received on Wednesday, 30 October 2024 22:11:18 UTC