Skip to content

Commit eb391c1

Browse files
authored
Merge pull request #7294 from lilles/rune/at-container-name-20220520
[css-contain-3] Disallow not/none for container-name in @-rule. #7203
2 parents 890fceb + 95851ac commit eb391c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

css-contain-3/Overview.bs

+3-1
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ Container Queries: the ''@container'' rule</h3>
576576
where:
577577

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

595+
The keywords ''container-name/none'', ''and'', ''not'', and ''or'' are excluded from the <<custom-ident>> above.
594596

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

0 commit comments

Comments
 (0)