ladybird/Tests/LibWeb/Layout/input/table/acid2-reduction.html
Aliaksandr Kalenik 7b75d0c1f0 LibWeb: Fix height distribution in "vertical-align: baseline" in TFC
This line changes padding top to align cell content to baseline:
`cell.padding_top += m_rows[cell.row_index].baseline - cell.baseline`

Which means available for distribution height `height_diff` could have
changed so it needs to be refreshed before assigning the rest of it to
padding bottom:
`cell_state.padding_bottom += height_diff;`

Fixes https://github.com/SerenityOS/serenity/issues/22032
2024-04-19 10:55:28 +02:00

17 lines
No EOL
365 B
HTML

<!DOCTYPE html><style type="text/css">
.table {
display: table;
}
.second-part {
display: table;
height: 50px;
width: 50px;
background: black;
}
.third-part {
display: table-cell;
height: 50px;
width: 50px;
background: black;
}
</style></head><div class="table"><div class="second-part"></div><div class="third-part"></div></div>