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

> I share Tim's concern about a registry. It's basically the same problem as in [#3559 (comment)](https://github.com/w3c/csswg-drafts/issues/3559#issuecomment-458734231), so I guess @tabatkins is also opposed to a registry.

It's not exactly the same. There, the issue is that implementations would have to maintain contextual information, i.e. whether one property is interpreted in combination with another.
Here, the check aligns with the idea of "Does it parse?", as Tab expressed it. For `@supports (grid-template-columns: subgrid)` the engine needs to be able to parse the property and the given value. So the property name and its syntax need to be registered. For `@supports html(input[switch])` it's similar.
And if it's not close enough to the "Does it parse?" principle yet, how about the following syntax?

```css
@supports html(<input type="checkbox" switch>) { … }
```

Sebastian

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


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

Received on Monday, 25 December 2023 22:26:35 UTC