Re: [csswg-drafts] [css-flexbox] Clarify how to resolve flex item padding percentage values before flex container size is resolved (#6510)

Having another look at https://www.w3.org/TR/css-sizing-3/#cyclic-percentage-contribution helped, thanks!

To summarize, this is my understanding:
- if we need to resolve a flex item’s percentage padding to calculate the inline size of the flex container—a cyclic percentage—the padding resolves to zero
- if we need to resolve a flex item’s percentage padding for the sake of determining flex item sizes in flex layout, that will be resolved against the inline size of the flex container, which at that point is guaranteed to be definite, and thus the padding will be resolved
- if the flex container’s cross size corresponds to its inline size, then the cross size determination in step 15 should yield the same size we already used for resolving percentage padding in earlier steps
- if the flex container’s cross size corresponds to its block size, that determination may indeed rely on the size of the flex lines, and that’s why it has to be done in one of the last steps



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


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

Received on Thursday, 19 August 2021 13:56:20 UTC