W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2015

Re: [shadow-dom] ::before/after on shadow hosts

From: Hayato Ito <hayato@chromium.org>
Date: Wed, 01 Jul 2015 04:19:42 +0000
Message-ID: <CAFpjS_3TnxgHVim_SdpR-XcZ4QEwG+F=xRYOJWAP7GrCaGC8og@mail.gmail.com>
To: Elliott Sprehn <esprehn@chromium.org>
Cc: Erik Isaksen <nevraeka@gmail.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, public-webapps <public-webapps@w3.org>
Yeah, ::before and ::after should be added as the children of the shadow
host in the composed tree, as a *pseudo* first child and a *pseudo* last

On Wed, Jul 1, 2015 at 1:15 PM Elliott Sprehn <esprehn@chromium.org> wrote:

> On Wed, Jul 1, 2015 at 12:08 AM, Hayato Ito <hayato@chromium.org> wrote:
>> > ::before and ::after are basically *siblings* of the shadow host,
>> That's not a correct sentence. ::before and ::after shouldn't be a
>> siblings of the shadow host.
>> I just wanted to say that #2 is the desired behavior.
> Indeed they're children, immediately before and immediately after the
> composed children of an element.
> fwiw this is also how it must work to prevent breaking the web or
> implementing special cases. <input> (and <textarea>) has a ShadowRoot and
> input::before and input::after are both common ways to add decorations to
> input elements. I broke this once in WebKit and we found all that content.
> - E
Received on Wednesday, 1 July 2015 04:20:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:57 UTC