mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +00:00
LibWeb: Only collapse vertical margin between BlockContainer siblings
If there's some non-block-level box (like an SVG element of some kind) between to blocks, just skip over the non-block for purposes of margin collapsing. This is basically a hack, and something we'll need to improve as part of our general SVG support.
This commit is contained in:
parent
43b8f65d82
commit
6de10858b9
1 changed files with 1 additions and 1 deletions
|
@ -462,7 +462,7 @@ void BlockFormattingContext::place_block_level_element_in_normal_flow_vertically
|
||||||
if (relevant_sibling_state.border_box_height() > 0)
|
if (relevant_sibling_state.border_box_height() > 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
relevant_sibling = relevant_sibling->previous_sibling();
|
relevant_sibling = relevant_sibling->previous_sibling_of_type<Layout::BlockContainer>();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (relevant_sibling) {
|
if (relevant_sibling) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue