Re: [csswg-drafts] [css-conditional-5] Feature detection for descriptors (#2463)

See also the suggestion in https://github.com/w3c/csswg-drafts/issues/12622 which could do the same detection with something like this:

```css
@supports-condition --color-property {
 @property --foo {
  syntax: "<color>";
  inherits: false;
  initial-value: black;
 }
}
@supports --color-property {
 /* declare custom properties with color syntax */
}
```
It's definitely more verbose as afaik you'd need to provide a complete valid `@property` rule instead of just the descriptor on its own. Then again, some descriptors' requirements depend on what other descriptors are specified. 

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


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

Received on Wednesday, 10 September 2025 09:53:26 UTC