From a613a0973e498659b42e2529b59fa1fd2a51bce2 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Tue, 16 May 2023 07:41:51 +0300 Subject: 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. --- .../grid/float-container-columns-1fr-1fr.txt | 24 ++++++++++++++++++++++ .../grid/float-container-columns-1fr-1fr.html | 13 ++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 Tests/LibWeb/Layout/expected/grid/float-container-columns-1fr-1fr.txt create mode 100644 Tests/LibWeb/Layout/input/grid/float-container-columns-1fr-1fr.html (limited to 'Tests/LibWeb/Layout') diff --git a/Tests/LibWeb/Layout/expected/grid/float-container-columns-1fr-1fr.txt b/Tests/LibWeb/Layout/expected/grid/float-container-columns-1fr-1fr.txt new file mode 100644 index 0000000000..b04cec661f --- /dev/null +++ b/Tests/LibWeb/Layout/expected/grid/float-container-columns-1fr-1fr.txt @@ -0,0 +1,24 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer at (0,0) content-size 800x600 [BFC] children: not-inline + BlockContainer at (8,8) content-size 784x0 children: not-inline + Box at (8,8) content-size 186.53125x34.9375 floating [GFC] children: not-inline + BlockContainer at (8,8) content-size 101.640625x17.46875 [BFC] children: inline + line 0 width: 79.25, height: 17.46875, bottom: 17.46875, baseline: 13.53125 + frag 0 from TextNode start: 0, length: 9, rect: [8,8 79.25x17.46875] + "some-text" + TextNode <#text> + BlockContainer at (109.640625,8) content-size 84.890625x17.46875 [BFC] children: inline + line 0 width: 78.03125, height: 17.46875, bottom: 17.46875, baseline: 13.53125 + frag 0 from TextNode start: 0, length: 9, rect: [109.640625,8 78.03125x17.46875] + "goes-here" + TextNode <#text> + BlockContainer at (8,25.46875) content-size 101.640625x17.46875 [BFC] children: inline + line 0 width: 101.640625, height: 17.46875, bottom: 17.46875, baseline: 13.53125 + frag 0 from TextNode start: 0, length: 12, rect: [8,25.46875 101.640625x17.46875] + "another-text" + TextNode <#text> + BlockContainer at (109.640625,25.46875) content-size 84.890625x17.46875 [BFC] children: inline + line 0 width: 84.890625, height: 17.46875, bottom: 17.46875, baseline: 13.53125 + frag 0 from TextNode start: 0, length: 10, rect: [109.640625,25.46875 84.890625x17.46875] + "goes-there" + TextNode <#text> 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 @@ + +
some-text
goes-here
another-text
goes-there
\ No newline at end of file -- cgit v1.2.3