Re: [csswg-drafts] [css-cascade] Can we use `@scope` for style isolation? (#11002)

I wish you could `@import` stylesheets into [scope() selectors](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@scope), like you can with layers. Would really help with linking component styles to specific elements without having to resort to physically placing the stylesheet inside the HTML element.

Something like:
```css
@import 'component-styles.css' scope(.component-selector);
```

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


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

Received on Saturday, 31 January 2026 17:17:58 UTC