Skip to content

Commit 59ef450

Browse files
committed
[css-cascade-4] Connect context handling better with shadow DOM terminology.
1 parent b29c569 commit 59ef450

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

css-cascade-4/Overview.bs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,12 +795,17 @@ Cascade Sorting Order</h3>
795795
A document language can provide for blending declarations sourced
796796
from different <dfn>encapsulation contexts</dfn>,
797797
such as the nested [=tree contexts=] of [=shadow trees=] in the [[!DOM]].
798+
798799
When comparing two declarations
799800
that are sourced from different [=encapsulation contexts=],
800801
then for [=normal=] rules
801802
the declaration from the outer context wins,
802803
and for [=important=] rules
803804
the declaration from the inner context wins.
805+
For this purpose,
806+
[[DOM]] [=tree contexts=] are considered to be nested
807+
in [=shadow-including tree order=].
808+
804809
<!--
805810
<dt id='cascade-scope'>Scope
806811
<dd>

0 commit comments

Comments
 (0)