LibWeb: Never split SVG foreignObject for inline continuations

This would produce a bizarre layout tree and certainly not yield
expected results.
This commit is contained in:
Andreas Kling 2025-07-07 19:47:41 +02:00 committed by Andreas Kling
commit f343a418b2
Notes: github-actions[bot] 2025-07-09 12:37:42 +00:00
2 changed files with 18 additions and 23 deletions

View file

@ -1413,6 +1413,10 @@ bool NodeWithStyleAndBoxModelMetrics::should_create_inline_continuation() const
if (is_svg_box())
return false;
// SVGForeignObjectBoxes should never be split.
if (is_svg_foreign_object_box())
return false;
return true;
}