mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-13 10:26:37 +02:00
When multiple floats are stacked vertically (e.g. multiple width:100% left floats), the float placement code clears current_boxes as each new "float line" begins. This meant that clear_floating_boxes() only saw the last stacked float, not all preceding ones. Fix this by iterating all_boxes instead of current_boxes when computing clearance. Also move set_content_y() before the FloatingBox creation so the root-space rect stored in all_boxes has the correct Y position.
87 KiB
87 KiB