File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -274,9 +274,9 @@ Intrinsic Aspect Ratios: the 'aspect-ratio' property</h3>
274274 height=315>
275275 </pre>
276276 <pre highlight="css">
277- @supports (aspect-ratio: attr(width) / 1) {
277+ @supports (aspect-ratio: attr(width number ) / 1) {
278278 iframe {
279- aspect-ratio: attr(width) / attr(height);
279+ aspect-ratio: attr(width number ) / attr(height number );
280280 width: 100%;
281281 height: auto;
282282 }
@@ -287,7 +287,7 @@ Intrinsic Aspect Ratios: the 'aspect-ratio' property</h3>
287287 <div class="example">
288288 In the following example:
289289
290- <pre highlight=css >
290+ <pre highlight=html >
291291 <div id=container style="height: 100px; float: left;">
292292 <div id=item style="height: 100%; aspect-ratio: 1/1;">content</div>
293293 </div>
@@ -297,7 +297,7 @@ Intrinsic Aspect Ratios: the 'aspect-ratio' property</h3>
297297 the width of the item resolves to 100px for both its intrinsic size contributions as well as for final layout,
298298 so the container also sizes to a width of 100px.
299299
300- <pre highlight=css >
300+ <pre highlight=html >
301301 <div id=container style="height: auto; float: left;">
302302 <div id=item style="height: 100%; aspect-ratio: 1/1;">content</div>
303303 </div>
You can’t perform that action at this time.
0 commit comments