Re: [csswg-drafts] [css-scoping] Please bring back scoped styles (#3547)

@fantasai Thank you for the clarification! Some reflections:

> The downside to the HTML approach is that you have to inject the style sheet into the markup. Which maybe isn't too bad if you only have one instance, but it can be pretty repetitive if you have multiple instances with the same styles!

My understanding is that this would be less repetitive than when writing CSS into a shadowRoot. Why? Because you can still draw upon already set global styles. Currently, when I write a custom element, the only easy way to use styles specific to an _instance_ of that element is through Shadow DOM. And once I start using Shadow DOM, I have to play with its rules — including not being able to use global style rules.

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

Received on Wednesday, 30 January 2019 09:14:22 UTC