Skip to content

Commit b42e90e

Browse files
committed
[css-cascade-4] Define inheritance over flattened tree for DOM with shadows.
1 parent 8fc6f01 commit b42e90e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

css-cascade-4/Overview.bs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,12 @@ Inheritance</h3>
10551055
which has no parent element,
10561056
the <a>inherited value</a> is the <a>initial value</a> of the property.
10571057

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]]
10591064

10601065
Some properties are <dfn export lt="inherited property">inherited properties</dfn>,
10611066
as defined in their property definition table.
@@ -1149,6 +1154,9 @@ Changes Since the 28 August 2018 Candidate Recommendation</h3>
11491154
Added <a href="#cascade-context">context</a> to the [=cascade=] sort criteria
11501155
to accommodate Shadow DOM. [[DOM]]
11511156
(<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=].
11521160
</ul>
11531161

11541162
<h3 id="changes-2016">

0 commit comments

Comments
 (0)