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

Shadow tree style isolation primitive

From: Anne van Kesteren <annevk@annevk.nl>
Date: Fri, 9 Jan 2015 14:40:36 +0100
Message-ID: <CADnb78i+wAMh4JNt38j9EXC-am96Fry_DkmSbBm55JfPdT0EWg@mail.gmail.com>
To: "www-style@w3.org" <www-style@w3.org>, WebApps WG <public-webapps@w3.org>
I'm wondering if it's feasible to provide developers with the
primitive that the combination of Shadow DOM and CSS Scoping provides.
Namely a way to isolate a subtree from selector matching (of document
stylesheets, not necessarily user and user agent stylesheets) and
requiring a special selector, such as >>>, to pierce through the
boundary.

This is a bit different from the `all` property as that just changes
the values of all properties, it does not make a selector such as
"div" no longer match.

So to be clear, the idea is that if you have a tree such as

  <section class=example>
    <h1>Example</h1>
    <div> ... </div>
  </section>

Then a simple div selector would not match the innermost div if we
isolated the section. Instead you would have to use section >>> div or
some such. Or perhaps associate a set of selectors and style
declarations with that subtree in some manner.


-- 
https://annevankesteren.nl/
Received on Friday, 9 January 2015 13:41:09 UTC

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