W3C home > Mailing lists > Public > www-style@w3.org > February 2014

Re: Shadow DOM: Hat and Cat -- if that's your real name.

From: Steve Orvell <sorvell@google.com>
Date: Tue, 4 Feb 2014 12:28:24 -0800
Message-ID: <CA+rMWZgyHSOpUozRkqhAOAhMG51owgAj-FfTKOzyrmufuCHnRQ@mail.gmail.com>
To: www-style@w3.org
+1 to ::shadow and ::shadow-all

The Polymer team (polymer-project.org) just discussed this and we agree
that ::shadow and ::shadow-all is a reasonable compromise. That said, there
we prefer ^ and ^^ and noted a few drawbacks to changing to use these

1. ::shadow and ::shadow-all are significantly more verbose (x-foo ^ .bar
v. x-foo::shadow .bar).
2. There's a semantic difference between the combinator and a
pseudo-element. 'x-foo ^' is clearly an error, 'x-foo::shadow' is not but
it styles nothing. If you mistakenly write 'x-foo ::shadow .bar' you'll
style something completely different than 'x-foo::shadow .bar'.
3. Related to the previous point, combinators fits more with what we're
conceptually doing. If I want to style .bar inside x-foo's shadowRoot,
there's a known relationship between .bar and x-foo.
Received on Tuesday, 4 February 2014 20:28:52 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:18 UTC