diff options
author | Andreas Kling <kling@serenityos.org> | 2023-03-11 18:27:11 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-12 18:10:32 +0100 |
commit | 92eaad8f2ebe1f40054cc76a7daf6612682356cc (patch) | |
tree | 1ab1e96307faf729c8ebf2f5f6d77abd120705cd /Tests/LibWeb/Layout/input | |
parent | 6960a1bb4576ce637e644b654d146ed1a4431eba (diff) | |
download | serenity-92eaad8f2ebe1f40054cc76a7daf6612682356cc.zip |
LibWeb: Consider entire stack of floated boxes when floating new box
If normal flow layout has caused us to progress past the current
innermost float in the block axis, we still need to consider the floats
stacked outside of it.
Fix this by always walking the currently stacked floats from innermost
to outermost when placing new floats.
Diffstat (limited to 'Tests/LibWeb/Layout/input')
-rw-r--r-- | Tests/LibWeb/Layout/input/bfc-consider-all-currently-stacked-floats.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/input/bfc-consider-all-currently-stacked-floats.html b/Tests/LibWeb/Layout/input/bfc-consider-all-currently-stacked-floats.html new file mode 100644 index 0000000000..0fc9a04855 --- /dev/null +++ b/Tests/LibWeb/Layout/input/bfc-consider-all-currently-stacked-floats.html @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<html> + <head> + <style> + * { + font-family: 'SerenitySans'; + } + .big-float { + float: left; + width: 100px; + height: 100px; + background-color: pink; + } + .xxx, + .yyy { + float: left; + background-color: orange; + } + </style> + </head> + <div class="big-float"></div> + <div class="xxx">xxx</div> + bar + <div> + <div class="yyy">yyy</div> + baz + </div> +</html> |