mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
LibWeb: Improve float: right
behavior
- Use the border box of the floated element when testing if something needs to flow around it. - Take the floated element's containing block size into account (instead of the BFC root) when calculating available space on a line where a right-side float intrudes.
This commit is contained in:
parent
a42506c8b9
commit
514fa83708
5 changed files with 64 additions and 9 deletions
|
@ -149,5 +149,7 @@ struct LayoutState {
|
|||
Gfx::FloatRect absolute_content_rect(Box const&, LayoutState const&);
|
||||
Gfx::FloatRect margin_box_rect(Box const&, LayoutState const&);
|
||||
Gfx::FloatRect margin_box_rect_in_ancestor_coordinate_space(Box const& box, Box const& ancestor_box, LayoutState const&);
|
||||
Gfx::FloatRect border_box_rect(Box const&, LayoutState const&);
|
||||
Gfx::FloatRect border_box_rect_in_ancestor_coordinate_space(Box const& box, Box const& ancestor_box, LayoutState const&);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue