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

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

From: Giuseppe via GitHub <sysbot+gh@w3.org>
Date: Fri, 08 Mar 2019 08:06:02 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-470841620-1552032360-sysbot+gh@w3.org>
@EisenbergEffect I think that one thing that is quite different from classical ShadowDOM encapsulation is that references don't obey to cascade or specificity, you can mix them together and get a final predictable result. 

If you think of a reference like a JavaScript Object and if you are familiar with JavaScript's `Object.assign` I imagine that, when applied, a bunch of `@include $ref`  would be similar to `Object.assign(ref1, ref2, ref3)`. 

If you want to see a PoC, I built an experimental library last year. You can read about it in [this blog post](https://survivejs.com/blog/dss-interview/).

GitHub Notification of comment by giuseppeg
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3714#issuecomment-470841620 using your GitHub account
Received on Friday, 8 March 2019 08:06:03 UTC

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