Re: [csswg-drafts] [css-grid][css-flexbox][quirks] Avoid percentage height quirk in new layout models (#5545)

Sorry, I think I misunderstood what you were suggesting -- you'd said "a block box", which I interpreted as another way of saying "a block container" / "a display:block box".

If you meant "a block-**level** box", then I think your suggested change would potentially work, because the flexbox and grid specs do indeed say that their flex/grid items are **not** block-level boxes (they're flex/grid-level).  So your suggested surgical change to the quirks-mode spec would effectively terminate the "digging up" algorithm as soon as we hit a flex item, and it would then choose the flex item as the percent basis (regardless of whether it has a definite size).

I'm still not sure it's useful to choose the flex item (rather than the percent-height-element's nearest containing block) as the percent basis in this scenario;  but maybe it doesn't matter if both are indefinite-height, as they probably are if we end up terminating the algorithm in this way.

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


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

Received on Thursday, 10 December 2020 00:41:17 UTC