Skip to content

Commit 5b5db39

Browse files
committed
[css-flexbox] Allow flex items with indefinite flex size to be definite wrt resolving percentages inside them. w3c#1679.
1 parent 5b24135 commit 5b5db39

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

css-flexbox/Overview.bs

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2736,10 +2736,11 @@ Definite and Indefinite Sizes</h3>
27362736
and is considered <a>definite</a>.
27372737

27382738
<li>
2739-
If a <a>flex item</a> has a <a>definite</a> <a>flex basis</a>
2740-
and the <a>flex container</a> has a <a>definite</a> <a>main size</a>,
2741-
its post-flexing main size is treated as <a>definite</a>
2742-
(even though it might technically rely on the sizes of <a>indefinite</a> siblings to resolve its flexed main size).
2739+
If the <a>flex container</a> has a <a>definite</a> <a>main size</a>,
2740+
a <a>flex item</a>’s post-flexing <a>main size</a>
2741+
is treated as <a>definite</a>,
2742+
even though it can rely on the <a>indefinite</a> sizes
2743+
of any flex items in the same line.
27432744

27442745
<li>
27452746
Once the cross size of a flex line has been determined,
@@ -3434,6 +3435,18 @@ Substantive Changes and Bugfixes</h4>
34343435
and/or as a minimum (if it is not shrinkable),
34353436
and then further clamped by its <a lt="min main size property">min</a>/<a>max main size properties</a>.
34363437
</blockquote>
3438+
<li id="change-2017-definite-basis">
3439+
Since at least two implementations ended up
3440+
allowing percentages inside flex items with indefinite flex basis to resolve anyway,
3441+
removed the condition requiring definite flex basis.
3442+
(<a href="https://github.com/w3c/csswg-drafts/issues/1679">Issue 1679</a>)
3443+
<blockquote>
3444+
<p>If <del>a <a>flex item</a> has a <a>definite</a> <a>flex basis</a>
3445+
and</del> the <a>flex container</a> has a <a>definite</a> <a>main size</a>,
3446+
<del>its</del> <ins>a <a>flex item</a>’s</ins> post-flexing main size is treated as <a>definite</a>
3447+
(even though it might technically rely on the <del>sizes of <a>indefinite</a> siblings to resolve its flexed main size</del>
3448+
the <a>indefinite</a> sizes of any flex items in the same line).
3449+
</blockquote>
34373450
<li id="change-2016-align-self-as-specified">
34383451
For ease of implementation, ''align-self/auto'' value of 'align-self' now computes to itself always.
34393452
See <a href="change-2015-align-self-auto">related previous change</a>

0 commit comments

Comments
 (0)