Skip to content

Commit 390211e

Browse files
committed
[css-sizing-4] Fix markup. Editorial.
1 parent 47960c4 commit 390211e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

css-sizing-4/Overview.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
&lt;div id=container style="height: 100px; float: left;">
292292
&lt;div id=item style="height: 100%; aspect-ratio: 1/1;">content&lt;/div>
293293
&lt;/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
&lt;div id=container style="height: auto; float: left;">
302302
&lt;div id=item style="height: 100%; aspect-ratio: 1/1;">content&lt;/div>
303303
&lt;/div>

0 commit comments

Comments
 (0)