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

> 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