Re: [csswg-drafts] [css-cascade-6] A way for <style> elements to scope to their parent element (#6606)

Right. But I think one of the issues with `<style scoped>` is that it has backwards-compatibility problems. Browsers that don't understand the `scoped` attribute will continue to apply those styles globally (the [current behavior](https://codepen.io/miriamsuzanne/pen/oNwebYq)) — which is not the ideal fallback here. 

I like the pseudo-class idea because it avoids that issue, while building on top of the more flexible CSS-selector driven approach to `@scope`. 

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


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

Received on Monday, 13 September 2021 20:47:23 UTC