W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2019

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

From: Rob Eisenberg via GitHub <sysbot+gh@w3.org>
Date: Fri, 08 Mar 2019 01:58:48 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-470774602-1552010327-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:26:57 UTC