Skip to content

Commit 8fc6f01

Browse files
committed
[css-cascade-4] Add clarifying note about why encapuslation contexts have this cascading behavior.
1 parent 59ef450 commit 8fc6f01

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

css-cascade-4/Overview.bs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,11 @@ Cascade Sorting Order</h3>
806806
[[DOM]] [=tree contexts=] are considered to be nested
807807
in [=shadow-including tree order=].
808808

809+
Note: This effectively means that
810+
[=normal=] declarations belonging to an [=encapsulation context=]
811+
can set defaults that are easily overridden by the outer context,
812+
while [=important=] declarations belonging to an [=encapsulation context=]
813+
can enforce requirements that cannot be overridden by the outer context.
809814
<!--
810815
<dt id='cascade-scope'>Scope
811816
<dd>

0 commit comments

Comments
 (0)