diff options
Diffstat (limited to 'Tests/LibWeb')
-rw-r--r-- | Tests/LibWeb/Layout/expected/grid/grid-item-with-fit-content-width.txt | 8 | ||||
-rw-r--r-- | Tests/LibWeb/Layout/input/grid/grid-item-with-fit-content-width.html | 5 |
2 files changed, 13 insertions, 0 deletions
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 <html> at (1,1) content-size 798x37.46875 [BFC] children: not-inline + Box <body> at (10,10) content-size 780x19.46875 [GFC] children: not-inline + BlockContainer <div.inner> 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 @@ +<!DOCTYPE html><style> + * { border: 1px solid black; } + body { display: grid; } + .inner { width: fit-content; } +</style><body><div class="inner">Press and Media
\ No newline at end of file |