diff --git a/css-scoping/Overview.bs b/css-scoping/Overview.bs index a32ad7c1d89..7041ee9faf8 100644 --- a/css-scoping/Overview.bs +++ b/css-scoping/Overview.bs @@ -10,7 +10,7 @@ Editor: Tab Atkins Jr., Google, http://xanthir.com/contact/ Editor: Elika J Etemad, Invited Expert, http://fantasai.inkedblade.net/contact Abstract: This specification defines various scoping/encapsulation mechanisms for CSS, including scoped styles and the ''@scope'' rule, Shadow DOM selectors, and page/region-based styling. Ignored Terms: content, shadowroot, scoped -Link Defaults: selectors (dfn) child combinator, html5 (element) style +Link Defaults: selectors (dfn) child combinator, html (element) style Issue Tracking: Bugzilla https://www.w3.org/Bugs/Public/buglist.cgi?component=Scoping&list_id=47685&product=CSS&resolution=--- @@ -196,17 +196,13 @@ Shadow Encapsulation that can be attached to any element in the DOM. The root of the shadow tree is a shadow root, a non-element node which is associated with a shadow host. - An element can have any number of shadow trees, - which are ordered by creation time. - The most recently-created shadow tree on an element - is the youngest shadow tree for that element. An element with a shadow tree is a shadow host. It is the host element for its shadow trees. The descendants of a shadow host must not generate boxes in the formatting tree. - Instead, the contents of the youngest shadow tree generate boxes + Instead, the contents of the shadow tree generate boxes as if they were the contents of the element instead. In several instances in shadow DOM, @@ -392,57 +388,6 @@ Selecting Into the Light: the '':host'', '':host()'', and '':host-context()'' ps looking for elements that match its argument, until it reaches the document root. -
- <x-foo> - <"shadow tree"> - <div> - <span id="not-top">...</span> - </div> - <span id="top">...</span> - </> - </x-foo> -- - For a stylesheet in the outer document, - ''x-foo::shadow > span'' matches ''#top'', - but not ''#not-top'', - because it's not a top-level element in the shadow tree. - - If one wanted to target ''#not-top'', - one way to do it would be with ''x-foo::shadow > div > span''. - However, this introduces a strong dependency on the internal structure of the component; - in most cases, it's better to use the descendant combinator, - like ''x-foo::shadow span'', - to select all the elements of some type in the shadow tree. -
- <x-foo> - <"shadow tree"> - <div> - <span id="not-top">...</span> - </div> - <span id="top">...</span> - <x-bar> - <"shadow tree"> - <span id="nested">...</span> - </> - </x-bar> - </> - </x-foo> -- - For a stylesheet in the outer document, - the selector ''x-foo >>> span'' - selects all three of
<span> elements:
- ''#top'', ''#not-top'', and ''#nested''.
-