Skip to content

Commit d8501fc

Browse files
committed
[css-contain-3] Update syntax for size-queries w3c#6870 & allow general-enclosed w3c#6396
1 parent 488de97 commit d8501fc

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

css-contain-3/Overview.bs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ Container Queries</h2>
339339
width: 100px;
340340
container-type: inline-size;
341341
}
342-
@container size(inline-size < 150px) {
342+
@container (inline-size < 150px) {
343343
#inner::before {
344344
content: "BEFORE";
345345
}
@@ -363,7 +363,7 @@ Container Queries</h2>
363363
width: 100px;
364364
container-type: inline-size;
365365
}
366-
@container size(inline-size < 150px) {
366+
@container (inline-size < 150px) {
367367
::slotted(span) {
368368
color: green;
369369
}
@@ -600,13 +600,9 @@ Container Queries: the ''@container'' rule</h3>
600600
| <<container-query>> [ and <<container-query>> ]*
601601
| <<container-query>> [ or <<container-query>> ]*
602602
<dfn><<container-query>></dfn> = ( <<container-condition>> )
603-
| size( <<size-query>> )
603+
| ( <<size-feature>> )
604604
| style( <<style-query>> )
605-
606-
<dfn><<size-query>></dfn> = <<size-feature>> | <<size-condition>>
607-
<dfn><<size-condition>></dfn> = not ( <<size-query>> )
608-
| ( <<size-query>> ) [ and ( <<size-query>> ) ]*
609-
| ( <<size-query>> ) [ or ( <<size-query>> ) ]*
605+
| <<general-enclosed>>
610606
611607
<dfn><<style-query>></dfn> = <<style-feature>> | <<style-condition>>
612608
<dfn><<style-condition>></dfn> = not ( <<style-query>> )

0 commit comments

Comments
 (0)