mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix table vertical alignment (middle, bottom, not yet baseline) with differing height cells
Includes reftest for this behaviour Patch fixes margin-collapse-clear-002,3,8,9
This commit is contained in:
parent
2de3b119a9
commit
b1debc40be
9 changed files with 102 additions and 12 deletions
|
@ -162,6 +162,9 @@ impl TableRowFlow {
|
|||
// Assign the child's block size.
|
||||
child_table_cell.block_flow.base.position.size.block = block_size;
|
||||
|
||||
// Now we know the cell height, vertical align the cell's children.
|
||||
child_table_cell.valign_children();
|
||||
|
||||
// Write in the size of the relative containing block for children. (This information
|
||||
// is also needed to handle RTL.)
|
||||
child_table_cell.block_flow.base.early_absolute_position_info =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue