mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:27:45 +00:00
LibWeb: Support CSS floats in inline flow
CSS floats are now emitted by the InlineLevelIterator. When this happens, IFC coordinates with the parent BFC to float the box to the side, using the current LineBuilder state for vertical placement. This makes the "instructions" text on Acid3 render as a single contiguous flow of inline content.
This commit is contained in:
parent
fa64a7f6cc
commit
de6f7f0029
7 changed files with 57 additions and 9 deletions
|
@ -34,6 +34,10 @@ public:
|
|||
|
||||
void remove_last_line_if_empty();
|
||||
|
||||
float current_y() const { return m_current_y; }
|
||||
|
||||
void adjust_last_line_after_inserting_floating_box(Badge<BlockFormattingContext>, CSS::Float, float space_used_by_float);
|
||||
|
||||
private:
|
||||
void begin_new_line(bool increment_y);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue