W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2015

Re: Shadow tree style isolation primitive

From: Brian Kardell <bkardell@gmail.com>
Date: Mon, 12 Jan 2015 11:47:05 -0500
Message-ID: <CADC=+jc6ndO5+JZDZ8w-urkLXk8V37J1eCUYu9S6xPfU6aSoLw@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, Dimitri Glazkov <dglazkov@google.com>, "www-style@w3.org" <www-style@w3.org>, WebApps WG <public-webapps@w3.org>, Tab Atkins <tabatkins@google.com>
On Mon, Jan 12, 2015 at 7:04 AM, Anne van Kesteren <annevk@annevk.nl> wrote:

> On Fri, Jan 9, 2015 at 10:11 PM, Tab Atkins Jr. <jackalmage@gmail.com>
> wrote:
> > tl;dr: Cramming a subtree into a TreeScope container and then hanging
> > that off the DOM would do the job "for free" (because it bakes all
> > that functionality in).
> Sure, or we could expose a property that when set isolates a tree.
> Both a lot simpler than requiring ShadowRoot. However, it seems to me
> that ideally you can control all of this through CSS. The ability to
> isolate parts of a tree and have them managed by some other stylesheet
> or selector mechanism.

Controlling it through CSS definitely seems to be very high-level.  To me
at least it feels like it requires a lot more answering of "how" since it
deals with identifying elements by way of rules/selection in order to
differentially identify other elements by way of rules/selection.  At the
end of the day you have to identify particular elements as different
somehow and explain how that would work.  It seems better to start there at
a reasonably low level and just keep in mind that it might be a future aim
to move control of this sort of thing fully to CSS.  Since CSS matching
kind of conceptually happens on 'not exactly the DOM tree' (pseudo
elements, for example) it seems kind of similar to me and it might be worth
figuring that out before attempting another high-level feature which could
make answering 'what's the path up' all that much harder.

> --
> https://annevankesteren.nl/

Brian Kardell :: @briankardell :: hitchjs.com
Received on Monday, 12 January 2015 16:47:35 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:27:25 UTC