Skip to content

Commit c8ef08f

Browse files
committed
[shadow-styling] dfn shadow root
1 parent a17f165 commit c8ef08f

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

shadow-styling/Overview.bs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Shadow Trees</h3>
2626

2727
A <dfn export>shadow tree</dfn> is a document fragment
2828
that can be attached to any element in the DOM.
29+
The root of the <a>shadow tree</a> is a <dfn export>shadow root</dfn>,
30+
a non-element node which is associated with a <a>shadow host</a>.
2931
An element can have any number of <a>shadow trees</a>,
3032
which are ordered by creation time.
3133
The most recently-created <a>shadow tree</a> on an element
@@ -35,7 +37,7 @@ Shadow Trees</h3>
3537
It is the <dfn export>host element</dfn> for its shadow trees.
3638

3739
The descendants of a <a>shadow host</a>
38-
must not generate boxes as normal.
40+
must not generate boxes in the formatting tree.
3941
Instead, the contents of the <a>active shadow tree</a> generates boxes
4042
as if it were the contents of the element instead.
4143

shadow-styling/Overview.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ <h3 class="heading settled heading" data-level=2.1 id=shadow-trees><span class=s
160160

161161
<p> A <dfn data-dfn-type=dfn data-export="" id=shadow-tree>shadow tree<a class=self-link href=#shadow-tree></a></dfn> is a document fragment
162162
that can be attached to any element in the DOM.
163+
The root of the <a data-link-type=dfn href=#shadow-tree title="shadow tree">shadow tree</a> is a <dfn data-dfn-type=dfn data-export="" id=shadow-root>shadow root<a class=self-link href=#shadow-root></a></dfn>,
164+
a non-element node which is associated with a <a data-link-type=dfn href=#shadow-host title="shadow host">shadow host</a>.
163165
An element can have any number of <a data-link-type=dfn href=#shadow-tree title="shadow trees">shadow trees</a>,
164166
which are ordered by creation time.
165167
The most recently-created <a data-link-type=dfn href=#shadow-tree title="shadow tree">shadow tree</a> on an element
@@ -169,13 +171,13 @@ <h3 class="heading settled heading" data-level=2.1 id=shadow-trees><span class=s
169171
It is the <dfn data-dfn-type=dfn data-export="" id=host-element0>host element<a class=self-link href=#host-element0></a></dfn> for its shadow trees.
170172

171173
<p> The descendants of a <a data-link-type=dfn href=#shadow-host title="shadow host">shadow host</a>
172-
must not generate boxes as normal.
174+
must not generate boxes in the formatting tree.
173175
Instead, the contents of the <a data-link-type=dfn href=#active-shadow-tree title="active shadow tree">active shadow tree</a> generates boxes
174176
as if it were the contents of the element instead.
175177

176178
<p> In several instances in shadow DOM,
177179
elements don’t have element parents
178-
(instead, they may have a <a data-link-type=dfn title="shadow root">shadow root</a> as parent,
180+
(instead, they may have a <a data-link-type=dfn href=#shadow-root title="shadow root">shadow root</a> as parent,
179181
or something else).
180182
An element without a parent,
181183
or whose parent is not an element,
@@ -688,6 +690,7 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
688690
<li>/shadow/, <a href=#selectordef-shadow0 title="section 5.1">5.1</a>
689691
<li>/shadow-deep/, <a href=#selectordef-shadow-deep title="section 5.2">5.2</a>
690692
<li>shadow host, <a href=#shadow-host title="section 2.1">2.1</a>
693+
<li>shadow root, <a href=#shadow-root title="section 2.1">2.1</a>
691694
<li>shadow tree, <a href=#shadow-tree title="section 2.1">2.1</a>
692695
<li>top-level element, <a href=#top-level-element title="section 2.1">2.1</a>
693696
</ul></div>

0 commit comments

Comments
 (0)