[css-flexbox] Resolving flex item ‘auto’ preferred size for max-content contribution #6455
Labels
Closed Accepted as Obvious Bugfix
Commenter Satisfied
Commenter has indicated satisfaction with the resolution / edits.
css-flexbox-1
Current Work
Tested
Memory aid - issue has WPT tests
I’m trying to figure out how to resolve an
auto
preferred size of a flex item to calculate its max-content contribution as part of calculating themax-content
intrinsic main size of a flex container.§ 9.9.3. Flex Intrinsic Size Contributions specifies the following (emphasis mine):
My flex item has
width: auto
. CSS-SIZING-3 defers to the relevant layout module to calculate this. But the main size of a flex item is determined viaflex-basis
and the Flexbox layout algorithm. So ifflex-basis
is anything else thanauto
(in which case it does look atwidth
orheight
as appropriate),width
orheight
seems to be effectively ignored.How should I resolve a preferred size (
width
orheight
) ofauto
for a flex item? Should I follow the same steps as the steps for determining the flex base size outlined in § 9.2.3.E Determine the flex base size and hypothetical main size of each item? Where we ultimately look at themax-content
size of an item ifflex-basis: auto
andwidth: auto
(orheight: auto
)?The text was updated successfully, but these errors were encountered: