Skip to content

Commit a3acb19

Browse files
committed
[css-sizing-4] Move cycling a-r details into their own subsection.
1 parent a6fc47e commit a3acb19

1 file changed

Lines changed: 17 additions & 14 deletions

File tree

css-sizing-4/Overview.bs

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ Intrinsic Aspect Ratios: the 'aspect-ratio' property</h3>
275275
<div class="example">
276276
In the following example:
277277

278-
<pre>
278+
<pre highlight=css>
279279
&lt;div id=container style="height: 100px; float: left;">
280280
&lt;div id=item style="height: 100%; aspect-ratio: 1/1;">content&lt;/div>
281281
&lt;/div>
@@ -285,7 +285,7 @@ Intrinsic Aspect Ratios: the 'aspect-ratio' property</h3>
285285
the width of the item resolves to 100px for both its intrinsic size contributions as well as for final layout,
286286
so the container also sizes to a width of 100px.
287287

288-
<pre>
288+
<pre highlight=css>
289289
&lt;div id=container style="height: auto; float: left;">
290290
&lt;div id=item style="height: 100%; aspect-ratio: 1/1;">content&lt;/div>
291291
&lt;/div>
@@ -303,6 +303,21 @@ Intrinsic Aspect Ratios: the 'aspect-ratio' property</h3>
303303
to the width of the word “content”.
304304
</div>
305305

306+
Note: Having a [=preferred aspect ratio=] does not make a box into a [=replaced element=];
307+
layout rules specific to [=replaced elements=] generally
308+
do not apply to [=non-replaced=] boxes with a [=preferred aspect ratio=].
309+
For example, a [=non-replaced=] [=absolutely-positioned=] box
310+
treats ''justify-self: normal'' as ''justify-self/stretch'', not as ''justify-self/start''
311+
([[CSS-ALIGN-3#justify-abspos]]).
312+
313+
ISSUE: CSS2.1 does not cleanly differentiate between
314+
replaced elements vs. elements with an aspect ratio;
315+
need to figure out specific cases that are unclear and define them,
316+
either in the appropriate Level 3 spec or here.
317+
318+
<h4 id='aspect-ratio-cyclic'>
319+
Cyclic Aspect-Ratio Calculations</h4>
320+
306321
On non-replaced elements with an ''width/auto'' <a>inline size</a>
307322
(or any replaced element whose intrinsic <a>block size</a>
308323
depends on its <a>inline size</a>),
@@ -334,18 +349,6 @@ Intrinsic Aspect Ratios: the 'aspect-ratio' property</h3>
334349
taking into account the ''height/min-content'' minimum.
335350
</div>
336351

337-
Note: Having a [=preferred aspect ratio=] does not make a box into a [=replaced element=];
338-
layout rules specific to [=replaced elements=] generally
339-
do not apply to [=non-replaced=] boxes with a [=preferred aspect ratio=].
340-
For example, a [=non-replaced=] [=absolutely-positioned=] box
341-
treats ''justify-self: normal'' as ''justify-self/stretch'', not as ''justify-self/start''
342-
([[CSS-ALIGN-3#justify-abspos]]).
343-
344-
ISSUE: CSS2.1 does not cleanly differentiate between
345-
replaced elements vs. elements with an aspect ratio;
346-
need to figure out specific cases that are unclear and define them,
347-
either in the appropriate Level 3 spec or here.
348-
349352
<h4 id="aspect-ratio-minimum">
350353
Automatic Content-based Minimum Sizes</h4>
351354

0 commit comments

Comments
 (0)