Skip to content

Commit 2ad443f

Browse files
committed
[css-sizing-4] Flex items are an exception to this note. Issue by dholbert
1 parent a0efb78 commit 2ad443f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

css-sizing-4/Overview.bs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,13 @@ Intrinsic Aspect Ratios: the 'aspect-ratio' property</h3>
104104
of ''<var>width</var> / <var>height</var>''.
105105
</dl>
106106

107-
Note: If a box has both a specified 'width' and a specified 'height',
107+
Note: If a box has both a 'width' and a 'height'
108+
that are not <a lt="automatic size">automatic</a>
109+
(or, in the case of a <a>flex item</a>,
110+
both a ''flex-basis/content'' flex basis and
111+
a non-<a lt="automatic size">automatic</a> preferred <a>cross size</a>),
108112
then the <a>preferred aspect ratio</a> has no effect:
109-
at least one of these sizes must be ''width/auto''
113+
at least one of these sizes must be ''width/auto'' (/''flex-basis/content'')
110114
for the <a>preferred aspect ratio</a> to have an impact on sizing.
111115

112116
<div class="example">

0 commit comments

Comments
 (0)