From 5b5db39d21f3658ae2f4d7992daaf822aca178d8 Mon Sep 17 00:00:00 2001 From: fantasai Date: Wed, 6 Sep 2017 16:56:52 -0400 Subject: [PATCH] [css-flexbox] Allow flex items with indefinite flex size to be definite wrt resolving percentages inside them. #1679. --- css-flexbox/Overview.bs | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/css-flexbox/Overview.bs b/css-flexbox/Overview.bs index 12f21cd4456..04f450d428a 100644 --- a/css-flexbox/Overview.bs +++ b/css-flexbox/Overview.bs @@ -2736,10 +2736,11 @@ Definite and Indefinite Sizes and is considered definite.
  • - If a flex item has a definite flex basis - and the flex container has a definite main size, - its post-flexing main size is treated as definite - (even though it might technically rely on the sizes of indefinite siblings to resolve its flexed main size). + If the flex container has a definite main size, + a flex item’s post-flexing main size + is treated as definite, + even though it can rely on the indefinite sizes + of any flex items in the same line.
  • Once the cross size of a flex line has been determined, @@ -3434,6 +3435,18 @@ Substantive Changes and Bugfixes and/or as a minimum (if it is not shrinkable), and then further clamped by its min/max main size properties. +
  • + Since at least two implementations ended up + allowing percentages inside flex items with indefinite flex basis to resolve anyway, + removed the condition requiring definite flex basis. + (Issue 1679) +
    +

    If a flex item has a definite flex basis + and the flex container has a definite main size, + its a flex item’s post-flexing main size is treated as definite + (even though it might technically rely on the sizes of indefinite siblings to resolve its flexed main size + the indefinite sizes of any flex items in the same line). +

  • For ease of implementation, ''align-self/auto'' value of 'align-self' now computes to itself always. See related previous change