Skip to content

Commit 581ecd8

Browse files
committed
[css-sizing-4] Rephrase the note to make more sense and state more usefully.
1 parent efc8a85 commit 581ecd8

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

css-sizing-4/Overview.bs

+15-8
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,16 @@ New Sizing Values: the ''stretch'', ''fit-content'', and ''contain'' keywords</h
129129
applies [=stretch-fit sizing=].
130130
</dl>
131131

132+
<!--
133+
███ ██████ ████████ ████████ ██████ ████████ ████████ ███ ████████ ████ ███████
134+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
135+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
136+
██ ██ ██████ ████████ ██████ ██ ██ ███████ ████████ ██ ██ ██ ██ ██ ██
137+
█████████ ██ ██ ██ ██ ██ ██ ██ █████████ ██ ██ ██ ██
138+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
139+
██ ██ ██████ ██ ████████ ██████ ██ ██ ██ ██ ██ ██ ████ ███████
140+
-->
141+
132142
<h2 id="ratios">
133143
Aspect Ratios</h2>
134144

@@ -210,14 +220,11 @@ Intrinsic Aspect Ratios: the 'aspect-ratio' property</h3>
210220
The opposite axis (on which the [=ratio-dependent axis=] size depends)
211221
is the <dfn export>ratio-determining axis</dfn>.
212222

213-
Note: If a box has both a 'width' and a 'height'
214-
that are not <a lt="automatic size">automatic</a>
215-
(or, in the case of a <a>flex item</a>,
216-
both a ''flex-basis/content'' flex basis and
217-
a non-<a lt="automatic size">automatic</a> preferred <a>cross size</a>),
218-
then the <a>preferred aspect ratio</a> has no effect:
219-
at least one of these sizes must be ''width/auto'' (/''flex-basis/content'')
220-
for the <a>preferred aspect ratio</a> to have an impact on sizing.
223+
Note: A [=preferred aspect ratio=]
224+
only ever has an effect if at least one of the box's sizes
225+
is [=automatic size|automatic=].
226+
If neither 'width' nor 'height' is an [=automatic size=],
227+
it can have no effect on its [=preferred sizes=].
221228

222229
For the purpose of margin collapsing ([[css2/box#collapsing-margins]]),
223230
if the [=block axis=] is the [=ratio-dependent axis=],

0 commit comments

Comments
 (0)