Re: [csswg-drafts] [css-tables-3] Special weirdness of replaced vs. non-replaced percentage resolution (#5063)

Ok, the current text only explained the result by chance, because 100% of 100px is 100px, and the image's natural height is also 100px... When the cell height has been specified to 50px, it becomes obvious that both algorithms diverge.

Further analysis brings up the fact that, in the case of replaced elements, both layout passes keep ignoring the actual cell height, and use the defined one instead if one is provided, irrespective of whether a distribution step has changed that height further down the road. That's definitely not a case currently written in the spec, I will need to add new text for it.

My understanding is that we need a new rule that goes like this:
> In the case of replaced elements, percentage heights always resolve based on the `height` of their parent table-cell if that height was definite, and ignores the height ultimately attributed to the cell (this final height can only be taller than the definite height, so this never results in content overflow).

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

Received on Thursday, 9 July 2020 18:39:13 UTC