mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +00:00
LibWeb: Fix the x coordinate of a block after a float
The margin from the containing blocks shouldn't be included in the amount by which we increment x after a float was places. That coordinate should be relative to the containing block. Fixes the comments layout on https://lobste.rs.
This commit is contained in:
parent
0db8ac7465
commit
ce186dca70
6 changed files with 86 additions and 19 deletions
|
@ -39,7 +39,7 @@ public:
|
|||
|
||||
void add_absolutely_positioned_box(Box const& box) { m_absolutely_positioned_boxes.append(box); }
|
||||
|
||||
SpaceUsedByFloats space_used_by_floats(CSSPixels y) const;
|
||||
SpaceUsedAndContainingMarginForFloats space_used_and_containing_margin_for_floats(CSSPixels y) const;
|
||||
SpaceUsedByFloats intrusion_by_floats_into_box(Box const&, CSSPixels y_in_box) const;
|
||||
|
||||
virtual CSSPixels greatest_child_width(Box const&) const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue