W3C home > Mailing lists > Public > www-style@w3.org > March 2013

[shadowdom]: Using :root to specify the insertion point in ::distributed

From: Dimitri Glazkov <dglazkov@google.com>
Date: Mon, 25 Mar 2013 11:39:14 -0700
Message-ID: <CADh5Ky1B8tB2K_eSFrij_L_fna99xgvKNK2cnmN6eqEOcOg9gg@mail.gmail.com>
To: "www-style@w3.org" <www-style@w3.org>
Cc: Steve Orvell <sorvell@google.com>, "Tab Atkins Jr." <jackalmage@gmail.com>
Good time of day, my stylish colleagues!

While using Shadow DOM's ::distributed pseudo element function, Steve
(cc'd) stumbled into an interesting use case: he needs to select
precisely the elements that are distributed to the insertion point,
but not their descendants. The naive ::distributed(*) selects elements
and their descendants, inclusively.

It seems that we need a way to refer to the insertion point itself in
the selector. Tab suggested using ":root":


 It sounds good to me. How does it sound to you?

Received on Monday, 25 March 2013 18:39:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:27 UTC