You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The baseline of a cell is defined as the baseline of the first in-flow line box in the cell, or the first in-flow table-row in the cell, whichever comes first. If there is no such line box or table-row, the baseline is the bottom of content edge of the cell box.
Of course Blink considers it non-empty so the baseline is at the top.
WebKit also considers it non-empty, since the contents are taller than 0px.
However, Firefox puts the baseline at the bottom. So it seems that Firefox does that when the baseline would be at the very top.
I think aligning with Firefox will be the simplest option.
https://drafts.csswg.org/css-tables/#table-cell-baseline
That's not exactly what browsers do, but...
Testcase
We should at least align with other browser where they all agree: a,b,c.
Blink seems to place the baseline at the bottom of the cell if no content generates a fragment (this differs from
empty-cells
with abspos contents).Gecko and WebKit seem to place the baseline at the bottom of the cell if the contents are 0px tall.
The text was updated successfully, but these errors were encountered: