mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:57:44 +00:00
LibWeb: Reset margin collapsing state only if box indeed add clearance
This fixes the issue when margin collapsing state was always reset if a box has clear property not equal to none even if it does not actually introduce clearance.
This commit is contained in:
parent
b0a43404b9
commit
7cc20f4cb5
6 changed files with 83 additions and 13 deletions
|
@ -72,6 +72,13 @@ private:
|
|||
|
||||
void layout_list_item_marker(ListItemBox const&);
|
||||
|
||||
enum class DidIntroduceClearance {
|
||||
Yes,
|
||||
No,
|
||||
};
|
||||
|
||||
[[nodiscard]] DidIntroduceClearance clear_floating_boxes(Box const& child_box);
|
||||
|
||||
enum class FloatSide {
|
||||
Left,
|
||||
Right,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue