diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /layout/reftests/css-grid/grid-abspos-items-013.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/css-grid/grid-abspos-items-013.html')
-rw-r--r-- | layout/reftests/css-grid/grid-abspos-items-013.html | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/layout/reftests/css-grid/grid-abspos-items-013.html b/layout/reftests/css-grid/grid-abspos-items-013.html new file mode 100644 index 0000000000..9cb3c82a3c --- /dev/null +++ b/layout/reftests/css-grid/grid-abspos-items-013.html @@ -0,0 +1,120 @@ +<!DOCTYPE HTML> +<!-- + Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ +--> +<html><head> + <meta charset="utf-8"> + <title>CSS Grid Test: grid abs.pos. child in grid with gutters</title> + <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1230695"> + <link rel="help" href="https://drafts.csswg.org/css-grid/#abspos"> + <link rel="match" href="grid-abspos-items-013-ref.html"> + <style type="text/css"> +body { width:800px; } + +.grid { + display: grid; + position: relative; + grid-template-columns: repeat(5, 20px); + grid-auto-rows: 10px; + grid-gap: 10px 100px; + border: 1px solid; + padding: 0 3px 0 5px; + height: 40px; + margin-bottom: 2px; +} +.grid.r { + grid-template-columns: 20px; + grid-template-rows: repeat(5, 20px); + height: 160px; + padding: 2px 3px 4px 5px; + float: left; + min-width: 70px; + margin-right: 2px; +} +.c.s { + justify-content: space-evenly; + grid-gap: 0; +} + +x { + background: lime; +} + +a { + position: absolute; + left:0; right:0; bottom:20px; height: 3px; + background: black; +} +b { + position: absolute; + left:0; right:0; bottom:10px; height: 3px; + background: grey; +} +c { + position: absolute; + left:0; right:0; bottom:0; height: 3px; + background: blue; +} + +.r a { + left:50px; top:0; bottom:0; width: 3px; height:auto; +} +.r b { + left:40px; top:0; bottom:0; width: 3px; height:auto; +} +.r c { + left:30px; top:0; bottom:0; width: 3px; height:auto; +} + + </style> +</head> +<body> + +<div class="grid c"> +<x></x><x></x><x></x><x></x> +<a style="grid-column:2/4"></a><b style="grid-column:auto/4"></b><c style="grid-column:4/auto"></c> +</div> + +<div class="grid c"> +<x></x><x></x><x></x><x></x> +<a style="grid-column:1/4"></a><b style="grid-column:auto/1"></b><c style="grid-column:1/auto"></c> +</div> + +<div class="grid c"> +<x></x><x></x><x></x><x></x> +<a style="grid-column:6/6"></a><b style="grid-column:auto/6"></b><c style="grid-column:6/auto"></c> +</div> + +<div class="grid c s"> +<x></x><x></x><x></x><x></x> +<a style="grid-column:2/4"></a><b style="grid-column:auto/4"></b><c style="grid-column:4/auto"></c> +</div> + +<div class="grid c s"> +<x></x><x></x><x></x><x></x> +<a style="grid-column:1/4"></a><b style="grid-column:auto/1"></b><c style="grid-column:1/auto"></c> +</div> + +<div class="grid c s"> +<x></x><x></x><x></x><x></x> +<a style="grid-column:6/6"></a><b style="grid-column:auto/6"></b><c style="grid-column:6/auto"></c> +</div> + +<div class="grid r"> +<x></x><x></x><x></x><x></x> +<a style="grid-row:2/4"></a><b style="grid-row:auto/4"></b><c style="grid-row:4/auto"></c> +</div> + +<div class="grid r"> +<x></x><x></x><x></x><x></x> +<a style="grid-row:1/4"></a><b style="grid-row:auto/1"></b><c style="grid-row:1/auto"></c> +</div> + +<div class="grid r"> +<x></x><x></x><x></x><x></x> +<a style="grid-row:6/6"></a><b style="grid-row:auto/6"></b><c style="grid-row:6/auto"></c> +</div> + +</body> +</html> |