Skip to content

Commit ec58c6a

Browse files
committed
[css-cascade-5] Make note understandable to people who don't know about the “container query” proposal. #64907
1 parent ed81c17 commit ec58c6a

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

css-cascade-5/Overview.bs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,15 +1515,17 @@ Layer Ordering</h4>
15151515
</div>
15161516

15171517
Layers that are defined inside of a [=conditional group rule=]
1518-
do not contribute to the layer order unless the condition is true,
1519-
or unless the [=conditional group rule=] evaluates contextually
1520-
for different elements on the page.
1521-
1522-
Note: A feature like "container queries"
1523-
would need to evaluate contextually for individual elements.
1524-
Because of that, layers defined inside a container query
1525-
would be considered part of the global layer order
1526-
regardless of the condition.
1518+
do not contribute to the layer order unless the condition is true
1519+
or unless the [=conditional group rule=] can evaluate differently
1520+
for different elements in the document.
1521+
1522+
Note: Since the layer order is global to the document,
1523+
any layers defined inside an element-sensitive [=conditional group rule=]
1524+
need to be accommodated when establishing the global layer order,
1525+
regardless of the rule's condition.
1526+
Conditions that are global to the document, however
1527+
(such as ''@media'' and ''@supports'')
1528+
can accommodate such ''@layer'' rules conditionally.
15271529

15281530
<div class=example>
15291531
For example,

0 commit comments

Comments
 (0)