@@ -282,15 +282,15 @@ Container Queries</h2>
282282
283283 <pre class=lang-css>
284284 main, aside {
285- container: inline-size;
285+ container: my-layout / inline-size;
286286 }
287287
288288 .media-object {
289289 display: grid;
290290 grid-template: 'img' auto 'content' auto / 100%;
291291 }
292292
293- @container (inline-size > 45em) {
293+ @container my-layout (inline-size > 45em) {
294294 .media-object {
295295 grid-template: 'img content' auto / auto 1fr;
296296 }
@@ -542,31 +542,35 @@ Naming Query Containers: the 'container-name' property</h3>
542542 to use the contents of the ''data-container'' attribute when provided.
543543 </div>
544544
545+ Issue(6405): container-name string vs ident
546+
545547
546548<h3 id="container-shorthand">
547549Creating Named Containers: the 'container' shorthand</h3>
548550
549551 <pre class='propdef shorthand'>
550552 Name : container
551- Value : <<'container-type '>> [ / <<'container-name '>> ]?
553+ Value : <<'container-name '>>? [ / <<'container-type '>> ]?
552554 </pre>
553555
554556 The 'container' [=shorthand property=] sets
555557 both 'container-type' and 'container-name' in the same declaration.
556558 If <<'container-name'>> is omitted,
557559 it is reset to its [=initial value=] .
560+ If <<'container-type'>> is omitted,
561+ it is reset to its [=initial value=] .
558562
559563 <div class=example>
560564 We can define both a 'container-type' and 'container-name'
561565 using the shorthand syntax:
562566
563567 <pre class=lang-css>
564568 main {
565- container: size / layout ;
569+ container: my-layout / size ;
566570 }
567571
568572 .grid-item {
569- container: inline-size / component ;
573+ container: my-component / inline-size ;
570574 }
571575 </pre>
572576 </div>
@@ -668,7 +672,7 @@ Animated Containers</h3>
668672 }
669673
670674 #container {
671- container: inline-size;
675+ container-type : inline-size;
672676 flex: 1;
673677 }
674678
@@ -993,6 +997,9 @@ Changes since the 21 December 2021 First Public Working Draft</h3>
993997
994998 Significant changes since the <a href="https://www.w3.org/TR/2021/WD-css-contain-3-20211221/">21 December 2021 First Public Working Draft</a> include:
995999
1000+ * Reverse the order of <<container-name>> and <<container-type>>
1001+ in the 'container' shorthand property, with both being optional.
1002+ (<a href="https://github.com/w3c/csswg-drafts/issues/6393">Issue 6393</a> )
9961003 * Allow <<general-enclosed>> syntax in <<container-condition>> s,
9971004 for the sake of forward compatability.
9981005 (<a href="https://github.com/w3c/csswg-drafts/issues/6396">Issue 6396</a> )
0 commit comments