DescriptionFlex grow wrongly calculated for value between 0 and 1
When flex grow value for a flex item is set between 0 and 1,
the extra space to flex for the flex item is wrongly calculated.
If the value of totalFlexGrow is less than 1, then the available
space would be totalFlexGrow times the available space. And
then this space is distributed to all the flex items within the
flex line.
The spec describing it is:
http://dev.w3.org/csswg/css-flexbox-1/#resolve-flexible-lengths...
specifically this line "If the sum of the unfrozen flex items’ flex
factors is less than one, multiply the initial free space by this sum."
BUG=480752
Committed: https://crrev.com/5bdbe6de227d5408f9f289e99f405ebee46cc58f
Cr-Commit-Position: refs/heads/master@{#351567}
Patch Set 1 #
Messages
Total messages: 8 (2 generated)
|