Re: [csswg-drafts] [css-cascade] Atomic CSS (#11142)

I like this and could see myself using this!

------

Makes me think that checking for support could also have a shorter syntax for common cases.
A `@support` rule without prelude could implicitly check for support of all features used somewhere within that block.

```css
h1 {
 color: var(--color-primary);

 @supports {
  background: linear-gradient(...);
  background-clip: text;
  color: transparent; 
 }
}
```

But your proposal goes beyond simply checking for support so I agree that it then also should be a separate at rule :)

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


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

Received on Friday, 1 November 2024 18:59:19 UTC