File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1055,7 +1055,12 @@ Inheritance</h3>
1055
1055
which has no parent element,
1056
1056
the <a>inherited value</a> is the <a>initial value</a> of the property.
1057
1057
1058
- (Pseudo-elements inherit according to a fictional tag sequence described for each pseudo-element [[!SELECT]] .)
1058
+ For a [[DOM]] tree with shadows,
1059
+ inheritance operates on the [=flattened element tree=] .
1060
+ <span class="note"> This means that slotted elements inherit from the <{slot}> they're assigned to,
1061
+ rather than directly from their [=light tree=] parent.</span>
1062
+ [=Pseudo-elements=] inherit according to the fictional tag sequence
1063
+ described for each [=pseudo-element=] . [[!CSS-PSEUDO-4]]
1059
1064
1060
1065
Some properties are <dfn export lt="inherited property">inherited properties</dfn> ,
1061
1066
as defined in their property definition table.
@@ -1149,6 +1154,9 @@ Changes Since the 28 August 2018 Candidate Recommendation</h3>
1149
1154
Added <a href="#cascade-context">context</a> to the [=cascade=] sort criteria
1150
1155
to accommodate Shadow DOM. [[DOM]]
1151
1156
(<a href="https://github.com/w3c/csswg-drafts/issues/5372">Issue 5372</a> )
1157
+ <li id="change-2018-shadow-inherit">
1158
+ Defined that, in consideration of [=shadow trees=] ,
1159
+ [=inheritance=] operates over the [=flattened element tree=] .
1152
1160
</ul>
1153
1161
1154
1162
<h3 id="changes-2016">
You can’t perform that action at this time.
0 commit comments