You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"If the used flex basis is content or depends on its available space, and the flex container is being sized under a min-content or max-content constraint (e.g. when performing automatic table layout [CSS21]), size the item under that constraint. The flex base size is the item’s resulting main size."
Problems:
It is unclear what constitutes a "used flex basis value that depends on its available space", as none seem relevant in this context aside from the value content.
When a used flex-basis value is derived from a percentage that is resolved against an indefinite containing block (e.g., the flex container in this case), the resulting used value is content.
"percentage values of flex-basis are resolved against the flex item’s containing block (i.e. its flex container); and if that containing block’s size is indefinite, the used value for flex-basis is content."
However, in practice, when a flex-basis used value of content is derived from a percentage resolved against an indefinite size flex container, flex items are not consistently sized under the same constraint set on the flex container (e.g., max-content), as specified in 9.2(3)(c).
Determine the main size of the flex container using the rules of the formatting context in which it participates. For this computation, auto margins on flex items are treated as 0.
It’s unclear why this step appears after calculating the flex base size and hypothetical main size of each item. Excluding the note about the automatic block size of a block-level flex container, this instruction seems more appropriate in point 2, as the flex container's definite main size establishes the available main space for the flex items. Perhaps the intention here is to determine the main size of an indefinite flex container based on the sum of the hypothetical main sizes of its flex items?
According to CSS Flexible Box Layout Module Level 1, 9.2. Line Length Determination (3)(C):
Problems:
It is unclear what constitutes a "used flex basis value that depends on its available space", as none seem relevant in this context aside from the value
content
.When a used
flex-basis
value is derived from a percentage that is resolved against an indefinite containing block (e.g., the flex container in this case), the resulting used value iscontent
.References:
According to CSS Box Sizing Module Level 3:
According to CSS Flexible Box Layout Module Level 1, Section 7.2.3:
However, in practice, when a
flex-basis
used value ofcontent
is derived from a percentage resolved against an indefinite size flex container, flex items are not consistently sized under the same constraint set on the flex container (e.g.,max-content
), as specified in 9.2(3)(c).Test (Chrome and Firefox)
The text was updated successfully, but these errors were encountered: