- From: Noam Rosenthal via GitHub <noreply@w3.org>
- Date: Wed, 26 Aug 2026 19:26:24 +0000
- To: public-css-archive@w3.org
> We do already have a more explicit option in the nested `<style>@scope { … }<style>` syntax. I'm not sure a new attribute provides a significant advantage? I'm not even sure there's much advantage to using the style attribute, beyond some concept of consistency or expectations that it _ought to work_? And that reasoning doesn't hold for a new attribute. I guess brevity would be another argument, but at the cost of clarity…
Mainly because self closing elements cannot use`<style>@scope { … }<style>` (at least that's why I'm here :))
```html
<img style="@scope { &:hover { outline-color: red; } }">
```
--
GitHub Notification of comment by noamr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8752#issuecomment-5430068924 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 26 August 2026 19:26:24 UTC