- From: Steve Orvell <sorvell@google.com>
- Date: Tue, 2 Jul 2013 20:36:13 -0700
- To: Bronislav Klučka <Bronislav.Klucka@bauglir.com>
- Cc: public-webapps <public-webapps@w3.org>
- Message-ID: <CA+rMWZgmjJTZW1jyn7j+K2Otad9PhuVErCi-jCtWmrXWep+YXQ@mail.gmail.com>
> > 1/ ability to style nested shadow dom elements > I think if we don't have this, ::part is not particularly useful. Rule of thumb: any feature of ShadowDOM that does not respect the fact that shadowRoots may be arbitrarily nested is not useful. > 2/ change of part attribute from DOMString to DOMTokenList Seems like a no brainer. Good idea. 3/ ability to create complex selectors using ::part This concerns me. I will stipulate that you have shown this is useful and that this type of styling is not otherwise as easily achievable. The problem I see is that we've now exposed the structure of a shadowRoot as part of its 'public' styling api. If ::part(foo) > ::part(bar) is an important state, I'm then not allowed to move part bar with respect to part foo. This 'implementation detail' of its ShadowDOM is now set in stone. Perhaps we could achieve similar expressiveness without the inherent brittleness by adding the ability to specify parts that map to a complex selector specified within the shadowRoot. >From JavaScript, this might be something like: shadowRootHost.addPart('foobar', '::part(foo) > ::part(bar)'); On Tue, Jul 2, 2013 at 6:32 AM, Bronislav KluÄka < Bronislav.Klucka@bauglir.com> wrote: > Hi, > > since new paradigm conserning Custom Pseudo Elements have been introduced > http://lists.w3.org/Archives/**Public/public-webapps/** > 2013AprJun/0985.html<http://lists.w3.org/Archives/Public/public-webapps/2013AprJun/0985.html> > (part 5) > > I'd like to suggest few additions/changes: > > 1/ ability to style nested shadow dom elements > 2/ change of part attribute from DOMString to DOMTokenList > 3/ ability to create complex selectors using ::part > > the description/reasoning for this can be found here: > http://projects.webnt.eu/spec/**shadow/index.php<http://projects.webnt.eu/spec/shadow/index.php> > > In case ::part will not be in spec, the same still applies to pseudos > > Bronislav Klucka > > > >
Received on Wednesday, 3 July 2013 03:36:40 UTC