Re: [csswg-drafts] [css-flexbox] Percentage height resolution of children of flex items with indefinite flex basis (#6822)

> https://drafts.csswg.org/css-sizing-3/#cyclic-percentage-contribution
> 
> > Then, unless otherwise specified, when calculating the used sizes and positions of the containing block’s contents:
> > 
> > * If the cyclic dependency was introduced due to a block-size or max-block-size on the containing block that causes it to depend on the size of its contents, the box’s percentage is not resolved and instead behaves as auto.
> >   Note: Grid items and flex items do allow percentages to resolve in this case.
> > * Otherwise, the percentage is resolved against the containing block’s size. (The containing block’s size is not re-resolved based on the resulting size of the box; the contents might thus overflow or underflow the containing block).
> 
> In this case the dependency comes from `flex-basis` and not `(max-)block-size`, so 30px I guess? But what would happen with `flex-basis: content; height: auto`?

My understanding is that no matter what `height` says in this case.

-- 
GitHub Notification of comment by svillar
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6822#issuecomment-974616379 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 20 November 2021 08:36:40 UTC