diff options
author | Andreas Kling <kling@serenityos.org> | 2022-10-08 17:09:25 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-10-10 20:22:50 +0200 |
commit | 4b74f36cd081558f1d7ffa7dc70c01a000dfa220 (patch) | |
tree | 2ab015804986256c8898b3214e91e6d88ab0534e /Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h | |
parent | 47e3daa40f9f40940af80b97236723a0df96c51b (diff) | |
download | serenity-4b74f36cd081558f1d7ffa7dc70c01a000dfa220.zip |
LibWeb: Resolve vertical margins against containing block width
We were incorrectly resolving them against the available width, which
may or may not be the same as the containing block width.
The specification for these properties says that percentages resolve
against the containing block width, so that's what we should do.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h index 55f35c7156..00f777d5d9 100644 --- a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h +++ b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h @@ -67,9 +67,9 @@ private: void layout_block_level_children(BlockContainer const&, LayoutMode, AvailableSpace const&); void layout_inline_children(BlockContainer const&, LayoutMode, AvailableSpace const&); - static void resolve_vertical_box_model_metrics(Box const& box, AvailableSpace const&, LayoutState&); + static void resolve_vertical_box_model_metrics(Box const& box, LayoutState&); void place_block_level_element_in_normal_flow_horizontally(Box const& child_box, AvailableSpace const&); - void place_block_level_element_in_normal_flow_vertically(Box const& child_box, AvailableSpace const&); + void place_block_level_element_in_normal_flow_vertically(Box const&); void layout_list_item_marker(ListItemBox const&); |