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

Re: [shadow-styling] First Draft of Shadow DOM Styling uploaded

From: Brad Kemper <brad.kemper@gmail.com>
Date: Sat, 8 Feb 2014 09:40:31 -0800
Message-Id: <898CA620-B537-4F32-B20D-1EB41E569399@gmail.com>
Cc: "www-style@w3.org" <www-style@w3.org>
To: Boris Zbarsky <bzbarsky@MIT.EDU>

> On Feb 8, 2014, at 8:51 AM, Boris Zbarsky <bzbarsky@MIT.EDU> wrote:
> 
>> On 2/8/14 11:47 AM, Brad Kemper wrote:
>> Selecting a document fragment is what ::first-line does.
> 
> Just as a nit, ::first-line selects at best a set of document fragments, in terms of its effects on "color".  Except not, in terms of its effects on "background".  I really wouldn't try using ::first-line as an example of anything sane...

Well, right, ::first-line has a lot of issues that would not be relevant to this. Shadow DOM would not have elements that are only partially contained. I only meant that conceptually it is similar in that it is a defined area, not part of the regular DOM, that can contain children (children you might want to style with something like '::first-line span', if we relaxed the restrictions on pseudo-elements). So to me, conceptually, the shadow 'document' is very much like a pseudo-element that you want to be able to select the children of. It is almost an element, maybe in between what is an element and what is  a pseudo-element.
Received on Saturday, 8 February 2014 17:40:59 UTC

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