summaryrefslogtreecommitdiff
path: root/Tests/LibWeb/Layout/input
diff options
context:
space:
mode:
authorAliaksandr Kalenik <kalenik.aliaksandr@gmail.com>2023-05-16 07:41:51 +0300
committerAndreas Kling <kling@serenityos.org>2023-05-16 07:47:47 +0200
commita613a0973e498659b42e2529b59fa1fd2a51bce2 (patch)
tree0aa206f4bdb59db3448da1b2029c2c38ebf3da92 /Tests/LibWeb/Layout/input
parent55e8ffd122a73164c64bd1356be02949a54858c0 (diff)
downloadserenity-a613a0973e498659b42e2529b59fa1fd2a51bce2.zip
LibWeb: Reset item_incurred_increase before distributing space in GFC
item_incurred_increase should be reset before every next distirbution because otherwise it will accumulate increases from previous distributions which is not supposed to happen.
Diffstat (limited to 'Tests/LibWeb/Layout/input')
-rw-r--r--Tests/LibWeb/Layout/input/grid/float-container-columns-1fr-1fr.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/input/grid/float-container-columns-1fr-1fr.html b/Tests/LibWeb/Layout/input/grid/float-container-columns-1fr-1fr.html
new file mode 100644
index 0000000000..9076eabca5
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/grid/float-container-columns-1fr-1fr.html
@@ -0,0 +1,13 @@
+<style>
+.container {
+ float: left;
+ display: grid;
+ background-color: lightsalmon;
+ grid-template-columns: 1fr 1fr;
+}
+
+.item {
+ background-color: lightblue;
+}
+</style>
+<div class="container"><div class="item">some-text</div><div class="item">goes-here</div><div class="item">another-text</div><div class="item">goes-there</div></div> \ No newline at end of file