mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Ignore border-spacing for tables with zero cells
This commit is contained in:
parent
32b9c0962b
commit
cad5d8b670
5 changed files with 50 additions and 8 deletions
|
@ -95,8 +95,7 @@ impl TableWrapperFlow {
|
|||
for kid in self.block_flow.base.child_iter() {
|
||||
if kid.is_table() {
|
||||
let kid_table = kid.as_table();
|
||||
let spacing_per_cell = kid_table.spacing().horizontal;
|
||||
spacing = spacing_per_cell * (self.column_intrinsic_inline_sizes.len() as i32 + 1);
|
||||
spacing = kid_table.total_horizontal_spacing();
|
||||
table_border_padding =
|
||||
kid_table.block_flow.fragment.border_padding.inline_start_end();
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue