Skip to content

Commit cc5dd2a

Browse files
fantasaifergald
authored andcommitted
[css-flex-1] Floor flex item min-content size by its specified size. w3c#2353
1 parent 5325214 commit cc5dd2a

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

css-flexbox-1/Overview.bs

+15-1
Original file line numberDiff line numberDiff line change
@@ -2888,7 +2888,8 @@ Flex Container Intrinsic Cross Sizes</h4>
28882888
Flex Item Intrinsic Size Contributions</h4>
28892889

28902890
The <strong>main-size <a>min-content contribution</a> of a <a>flex item</a></strong>
2891-
is its <em>outer</em> <a>min-content size</a>,
2891+
is the larger of its <em>outer</em> <a>min-content size</a>
2892+
and specified size (its 'width'/'height' as appropriate, if that is <a>definite</a>),
28922893
clamped by its <a>flex base size</a> as a maximum (if it is not growable)
28932894
and/or as a minimum (if it is not shrinkable),
28942895
and then further clamped by its <a lt="min main size property">min</a>/<a>max main size properties</a>.
@@ -3467,6 +3468,19 @@ Changes since the 16 October 2017 CR</h3>
34673468
they must be resolved against the inline dimension, as for blocks.
34683469
(<a href="https://github.com/w3c/csswg-drafts/issues/2085">Issue 2085</a>)
34693470

3471+
<li id="change-2017-flex-min-content">
3472+
Floored <a>flex item</a>’s <a>min-content contribution</a>
3473+
by their specified size ('width'/'height' as appropriate).
3474+
(<a href="https://github.com/w3c/csswg-drafts/issues/2353">Issue 2353</a>)
3475+
<blockquote>
3476+
The <strong>main-size <a>min-content contribution</a> of a <a>flex item</a></strong>
3477+
is the larger of its <em>outer</em> <a>min-content size</a>
3478+
<ins>and specified size (its 'width'/'height' as appropriate, if that is <a>definite</a>)</ins>,
3479+
clamped by its <a>flex base size</a> as a maximum (if it is not growable)
3480+
and/or as a minimum (if it is not shrinkable),
3481+
and then further clamped by its <a lt="min main size property">min</a>/<a>max main size properties</a>.
3482+
</blockquote>
3483+
34703484
<li id="change-2017-content-desc">
34713485
Added some (effectively informative) prose and a cross-reference
34723486
to more clearly define ''flex-basis: content''.

0 commit comments

Comments
 (0)