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

We also need a way to query support for `@rules` (without any particular descriptor), and I would hate it if we had to include a random descriptor to do so (like the `@property` examples above). So, ideally, the syntax should allow querying for:

- Recognition of `@rule`
- Descriptor within specific `@rule`
- Descriptor:value pair within specific `@rule`

Through the same general syntax.

I like @SebastianZ's suggestion above and it does lend itself nicely to detection of `@rule` with no descriptor (`@supports (@property)` or even `@supports (@property {})`). If it's feasible parsing-wise, I think it's probably the best option.

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


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

Received on Tuesday, 9 November 2021 17:44:26 UTC