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

@o-t-w I also, would like to see the re-visiting of scoped styles and would love to see this make a return. Being able to define a style that is scoped to a subset of elements would go a long way in terms of major use cases such as branding, consistency and the application of design systems in general.

@tomhodgins You bring up a good point, what should this spec exactly cover? Simply the scoped keyword? As you mentioned there are lots of ideas that could bleed into this such as media queries, `@if`  and `@else`. Would these other points belong in an elements or container query spec? or would you want to have them all added under the scoped styles spec?

If memory serves me, it was the vendors that pushed back on the spec initially. Maybe we need to revisit their concerns and see what can be done to mitigate them as a start?

I would be in favor of focusing on the scoped html attribute and possibly the reinstatement of the @scoped keyword. Limiting the spec, I think, would help make it a lot more palatable for browser vendors.

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

Received on Sunday, 27 January 2019 18:44:16 UTC