mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 18:02:20 +00:00
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
17 lines
No EOL
365 B
HTML
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> |