diff options
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/LibWeb/Layout/expected/grid/grid-item-fixed-paddings.txt | 36 | ||||
-rw-r--r-- | Tests/LibWeb/Layout/input/grid/grid-item-fixed-paddings.html | 22 |
2 files changed, 58 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/expected/grid/grid-item-fixed-paddings.txt b/Tests/LibWeb/Layout/expected/grid/grid-item-fixed-paddings.txt new file mode 100644 index 0000000000..85fa19d64c --- /dev/null +++ b/Tests/LibWeb/Layout/expected/grid/grid-item-fixed-paddings.txt @@ -0,0 +1,36 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline + BlockContainer <body> at (8,8) content-size 784x355.507812 children: not-inline + Box <div.grid-container> at (8,8) content-size 784x355.507812 [GFC] children: not-inline + BlockContainer <(anonymous)> at (8,8) content-size 0x0 [BFC] children: inline + TextNode <#text> + BlockContainer <div.grid-item> at (68,68) content-size 17.050781x32.753906 [BFC] children: inline + line 0 width: 11.894531, height: 32.753906, bottom: 32.753906, baseline: 25.371093 + frag 0 from TextNode start: 0, length: 1, rect: [71,68 11.894531x32.753906] + "1" + TextNode <#text> + BlockContainer <(anonymous)> at (8,8) content-size 0x0 [BFC] children: inline + TextNode <#text> + BlockContainer <div.grid-item> at (255.050781,68) content-size 16.523437x32.753906 [BFC] children: inline + line 0 width: 16.523437, height: 32.753906, bottom: 32.753906, baseline: 25.371093 + frag 0 from TextNode start: 0, length: 1, rect: [255.050781,68 16.523437x32.753906] + "2" + TextNode <#text> + BlockContainer <(anonymous)> at (8,8) content-size 0x0 [BFC] children: inline + TextNode <#text> + BlockContainer <div.grid-item> at (68,270.753906) content-size 17.050781x32.753906 [BFC] children: inline + line 0 width: 17.050781, height: 32.753906, bottom: 32.753906, baseline: 25.371093 + frag 0 from TextNode start: 0, length: 1, rect: [68,270.753906 17.050781x32.753906] + "3" + TextNode <#text> + BlockContainer <(anonymous)> at (8,8) content-size 0x0 [BFC] children: inline + TextNode <#text> + BlockContainer <div.grid-item> at (255.050781,270.753906) content-size 16.523437x32.753906 [BFC] children: inline + line 0 width: 14.53125, height: 32.753906, bottom: 32.753906, baseline: 25.371093 + frag 0 from TextNode start: 0, length: 1, rect: [256.050781,270.753906 14.53125x32.753906] + "4" + TextNode <#text> + BlockContainer <(anonymous)> at (8,8) content-size 0x0 [BFC] children: inline + TextNode <#text> + BlockContainer <(anonymous)> at (8,363.507812) content-size 784x0 children: inline + TextNode <#text> diff --git a/Tests/LibWeb/Layout/input/grid/grid-item-fixed-paddings.html b/Tests/LibWeb/Layout/input/grid/grid-item-fixed-paddings.html new file mode 100644 index 0000000000..9a96871872 --- /dev/null +++ b/Tests/LibWeb/Layout/input/grid/grid-item-fixed-paddings.html @@ -0,0 +1,22 @@ +<style> +.grid-container { + display: grid; + grid-template-columns: min-content min-content; + grid-template-rows: auto; + grid-gap: 50px; +} + +.grid-item { + background-color: #ddd; + padding: 50px; + text-align: center; + font-size: 30px; + border: 10px solid black; +} +</style> +<div class="grid-container"> + <div class="grid-item">1</div> + <div class="grid-item">2</div> + <div class="grid-item">3</div> + <div class="grid-item">4</div> +</div> |