Skip to content

Commit 80439b1

Browse files
committed
[css-contain-3][editorial] Address linking issues and example typos fixes w3c#7342
1 parent eb391c1 commit 80439b1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

css-contain-3/Overview.bs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ Creating Query Containers: the 'container-type' property</h3>
455455
container-type: style;
456456
}
457457

458-
@container (--cards) {
458+
@container (--cards: small) {
459459
article {
460460
border: thin solid silver;
461461
border-radius: 0.5em;
@@ -477,7 +477,7 @@ Naming Query Containers: the 'container-name' property</h3>
477477
Initial: none
478478
Inherited: no
479479
Applies to: all elements
480-
Computed Value: the keyword ''none'', or an ordered list of [=identifiers=]
480+
Computed Value: the keyword ''container-name/none'', or an ordered list of [=identifiers=]
481481
Animation type: not animatable
482482
</pre>
483483

@@ -576,7 +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>>
579+
<dfn><<container-name>></dfn> = <<custom-ident>>
580580
<dfn><<container-condition>></dfn> = not <<query-in-parens>>
581581
| <<query-in-parens>> [ [ and <<query-in-parens>> ]* | [ or <<query-in-parens>> ]* ]
582582
<dfn><<query-in-parens>></dfn> = ( <<container-condition>> )
@@ -592,7 +592,8 @@ Container Queries: the ''@container'' rule</h3>
592592
| <<general-enclosed>>
593593
</pre>
594594

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

597598
For each element,
598599
the [=query container=] to be queried
@@ -615,7 +616,7 @@ Container Queries: the ''@container'' rule</h3>
615616
we can string together multiple conditions in a single query list:
616617

617618
<pre class=lang-css>
618-
@container card (inline-size > 30em) and style(--responsive = true) {
619+
@container card (inline-size > 30em) and style(--responsive: true) {
619620
/* styles */
620621
}
621622
</pre>

0 commit comments

Comments
 (0)