mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
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:
parent
b4708510fb
commit
f343a418b2
Notes:
github-actions[bot]
2025-07-09 12:37:42 +00:00
Author: https://github.com/awesomekling
Commit: f343a418b2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5369
Reviewed-by: https://github.com/gmta ✅
2 changed files with 18 additions and 23 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue