@@ -43,6 +43,7 @@ spec:css-break-3; type:dfn; text:fragmentation container
4343spec:css-break-3; type:dfn; text:fragmentation context
4444spec:css-break-3; type:dfn; text:fragmented flow
4545spec:css-sizing-4; type:property; text:contain-intrinsic-size
46+ spec:css-sizing-4; type:property; text:aspect-ratio
4647spec:intersection-observer; type:dfn; text:intersection root
4748spec:css-sizing-3; type:value; for:height; text:auto
4849</pre>
@@ -546,6 +547,30 @@ Size Containment</h3>
546547 2. [=Size containment boxes=] must be treated
547548 as if they had no [=intrinsic aspect ratio=] .
548549
550+ Note: Size containment only suppresses the [=intrinsic aspect ratio=] ,
551+ not [=preferred aspect ratio=] ,
552+ so properties like 'aspect-ratio' which affect that [=preferred aspect ratio=] directly
553+ are honored.
554+
555+ <div class=example>
556+ Given the following markup and style, the image would be sized to 100px by 100px,
557+ as the aspect ratio set by the 'aspect-ratio' property takes effect.
558+ <pre><code class=lang-css>
559+ img {
560+ width: 100px;
561+ aspect-ratio: 1/1;
562+ contain: size;
563+ }
564+ </code><code class=lang-html>
565+ <img src="https://www.example.com/300x100.jpg">
566+ </code></pre>
567+
568+ If the 'aspect-ratio' property had not been declared,
569+ the image would have been 100px by 0px,
570+ as its intrinsic aspect ratio is suppressed,
571+ and its intrinsic height is treated as 0.
572+ </div>
573+
549574 3. [=Size containment boxes=] are <a spec=css-break-3>monolithic</a> (See [[CSS-BREAK-3#possible-breaks]] ).
550575
551576 <wpt>
0 commit comments