mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:57:45 +00:00
LibWeb: Handle overlapping floating box and left margin
Allow the left margin of a box which creates a block formatting context to overlap with left floating boxes which are siblings in the document tree. Fixes #20233 and the comment layout on https://lobste.rs.
This commit is contained in:
parent
34c702e6e8
commit
6a17a30e2e
6 changed files with 100 additions and 2 deletions
|
@ -121,6 +121,7 @@ protected:
|
|||
// Each block in the containing chain adds its own margin and we store the total here.
|
||||
CSSPixels left_total_containing_margin;
|
||||
CSSPixels right_total_containing_margin;
|
||||
Box const* matching_left_float_box { nullptr };
|
||||
};
|
||||
|
||||
struct ShrinkToFitResult {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue