Re: [csswg-drafts] Allow applying style rules to the container itself (especially with style querries) (#10744)

Indeed, that looks pretty similar (btw, sorry about that I couldn't find it)!
About your `@element` use case where you wanna select elements that match your style querry + has the `.foo` class, you could also achieve the same result like this:
```css
@container style(--color: pink) {
    :container.foo {
        background-color: pink;
    }
}
```

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


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

Received on Friday, 16 August 2024 10:43:06 UTC