From a277c393b909a25a157e695cfaa357832e15da7f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 26 May 2023 19:01:01 +0200 Subject: LibWeb: Support grid items with fit-content width :^) --- .../Layout/expected/grid/grid-item-with-fit-content-width.txt | 8 ++++++++ .../Layout/input/grid/grid-item-with-fit-content-width.html | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 Tests/LibWeb/Layout/expected/grid/grid-item-with-fit-content-width.txt create mode 100644 Tests/LibWeb/Layout/input/grid/grid-item-with-fit-content-width.html (limited to 'Tests/LibWeb') diff --git a/Tests/LibWeb/Layout/expected/grid/grid-item-with-fit-content-width.txt b/Tests/LibWeb/Layout/expected/grid/grid-item-with-fit-content-width.txt new file mode 100644 index 0000000000..2d4c5ba43d --- /dev/null +++ b/Tests/LibWeb/Layout/expected/grid/grid-item-with-fit-content-width.txt @@ -0,0 +1,8 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer at (1,1) content-size 798x37.46875 [BFC] children: not-inline + Box at (10,10) content-size 780x19.46875 [GFC] children: not-inline + BlockContainer at (11,11) content-size 132.828125x17.46875 [BFC] children: inline + line 0 width: 132.828125, height: 17.46875, bottom: 17.46875, baseline: 13.53125 + frag 0 from TextNode start: 0, length: 15, rect: [11,11 132.828125x17.46875] + "Press and Media" + TextNode <#text> diff --git a/Tests/LibWeb/Layout/input/grid/grid-item-with-fit-content-width.html b/Tests/LibWeb/Layout/input/grid/grid-item-with-fit-content-width.html new file mode 100644 index 0000000000..d9a07f6df3 --- /dev/null +++ b/Tests/LibWeb/Layout/input/grid/grid-item-with-fit-content-width.html @@ -0,0 +1,5 @@ +
Press and Media \ No newline at end of file -- cgit v1.2.3