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:44:10 -0800
Message-Id: <B199DF41-0577-418F-B8B0-081120CAFFB9@gmail.com>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
To: Fran├žois REMY <francois.remy.dev@outlook.com>

> On Feb 8, 2014, at 2:48 AM, Fran├žois REMY <francois.remy.dev@outlook.com> wrote:
> 
> Firstly, I never saw any discussion about the ":ancestor(...)" pseudo-class in the past, which allow selectors inside a shadow DOM to select elements outside the shadow DOM. Wow, I think we are breaking yet another level of encapsulation here in a way I don't like at all. A Shadow DOM should never have an impact on an another element in the visible DOM than the element it's applied on, otherwise I don't need a crystal ball to tell you the "mobile performance" will see a dramatic decrease in bowsers implementing your spec. 
> 
> In all seriousness, can you provide a single "responsible" use case for this?

If 'option' was a component, you might want to style it differently if it was inside an 'optgroup'. 
Received on Saturday, 8 February 2014 17:44:38 UTC

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