Re: [csswg-drafts] [css-conditional-4] Need a way in CSS to test for support of HTML features (#9746)

Yeah, I think this would be a good idea. Could even re-use selector syntax, but it would be a different function, e.g. `html()` or `markup()` or something. E.g.

-  `HTML(rb)` indicates the UA supports the `rb` element
- `HTML([dir])` indicates some basic level of support for the `dir` attribute (HTML4-level support would be adequate to return true, because `auto` hadn't been invented yet)
- `HTML([dir=auto])` indicates support for `dir=auto`
- `HTML(input[type=color])` indicates support for `<input type=color>`

CSS tracks whether features are supported by whether they're successfully parsed, and you probably can't do that here, though so it would require the UA maintaining some kind of registry of what it supports.

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


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

Received on Friday, 22 December 2023 17:38:28 UTC