Skip to content

Commit 177d805

Browse files
committed
[css-contain-3] Disallow not/none for container-name in @-rule. w3c#7203
Use a separate definition of container-name in the @container syntax to disallow 'none' and 'not'.
1 parent 9936abd commit 177d805

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

css-contain-3/Overview.bs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ Container Queries: the ''@container'' rule</h3>
577577
where:
578578

579579
<pre class="prod def">
580+
<dfn id="query-container-name"><<container-name>></dfn> = <<custom-ident>>
580581
<dfn><<container-condition>></dfn> = not <<query-in-parens>>
581582
| <<query-in-parens>> [ [ and <<query-in-parens>> ]* | [ or <<query-in-parens>> ]* ]
582583
<dfn><<query-in-parens>></dfn> = ( <<container-condition>> )
@@ -592,14 +593,15 @@ Container Queries: the ''@container'' rule</h3>
592593
| <<general-enclosed>>
593594
</pre>
594595

596+
The keywords ''container-name/none'' and ''not'' are excluded from the <<custom-ident>> above.
595597

596598
For each element,
597599
the [=query container=] to be queried
598600
is selected from among the element’s ancestor [=query containers=]
599601
that have a valid 'container-type'
600602
for all the [=container features=]
601603
in the <<container-condition>>.
602-
The optional <dfn><<container-name>></dfn>
604+
The optional <<container-name>>
603605
filters the set of [=query containers=] considered
604606
to just those with a matching [=query container name=].
605607

0 commit comments

Comments
 (0)