1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 10:57:34 +00:00

LibWeb: Better handling of floating boxes from inline formatting context

Handle the clear property for floating boxes and add tracking for
vertical clearence within an inline formatting context.
This commit is contained in:
Andi Gallo 2023-07-29 04:05:45 +00:00 committed by Andreas Kling
parent fd86509ef8
commit 62f15f94d2
9 changed files with 78 additions and 8 deletions

View file

@ -38,6 +38,9 @@ public:
virtual void determine_width_of_child(Box const&, AvailableSpace const&) override;
virtual void determine_height_of_child(Box const&, AvailableSpace const&) override;
CSSPixels vertical_float_clearance() const;
void set_vertical_float_clearance(CSSPixels);
private:
void generate_line_boxes(LayoutMode);
void apply_justification_to_fragments(CSS::TextJustify, LineBox&, bool is_last_line);
@ -48,6 +51,8 @@ private:
CSSPixels m_automatic_content_width { 0 };
CSSPixels m_automatic_content_height { 0 };
CSSPixels m_vertical_float_clearance { 0 };
};
}