Re: [csswg-drafts] [css-selectors] Reference selectors (#3714)

That all makes sense. Thanks for expounding a bit.

I think this particular notion of references might be more useful when trying to accomplish scoped styles without shadow dom. It seems a bit less useful with shadow dom. With that in mind, it would be cool to see a PoC of css modules (the library) built on top of CSS Modules (the spec) using the reference idea proposed here. If that worked out nicely and this worked for things like Glamour too, then I could get behind it.

To be honest, I was always frustrated that shadow dom seemed to mix so many concerns together: slotted composition, scoped styles, dom encapsulation, event retargeting. If this provides a way to extract out the ability to scope styles without using shadow dom, that's a win I think.

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

Received on Friday, 8 March 2019 01:58:50 UTC