diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/css-grid/alignment/grid-gutters-014.html | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-grid/alignment/grid-gutters-014.html')
-rw-r--r-- | testing/web-platform/tests/css/css-grid/alignment/grid-gutters-014.html | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-grid/alignment/grid-gutters-014.html b/testing/web-platform/tests/css/css-grid/alignment/grid-gutters-014.html new file mode 100644 index 0000000000..404e694ec8 --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/alignment/grid-gutters-014.html @@ -0,0 +1,54 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS Grid Layout Test: Percentage gap, content-based width/height (via float)</title> +<link rel="help" href="https://www.w3.org/TR/css-grid-1/#gutters"> +<link rel="help" href="https://www.w3.org/TR/css-align-3/#gaps"> +<link rel="match" href="grid-gutters-014-ref.html"> +<link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"> +<meta name="assert" content="Tests that percentage gaps contribute zero to intrinsic sizing, then resolve against corresponding axis of containing block for layout."> + +<style> + #grid { + display: grid; + border: solid 5px teal; + padding: 5px; + grid-gap: 15% 10%; + gap: 15% 10%; + float: left; + grid: auto auto / auto auto; + /* content box width = 200px height = 100px -> gap x = 20px y = 15px */ + position: relative; + } + + #grid > div { + margin: 5px 10px; + border: solid 5px aqua; + width: 70px; + height: 30px; + /* margin box height = 50px width = 100px */ + } + + /* highlight manual pass condition */ + #grid > div:nth-child(even) { + border-right-color: red; + } + #grid > div:nth-child(n + 3) { + border-bottom-color: red; + } + #mask { + position: absolute; + border: 5px teal; + border-style: none solid solid none; + bottom: -5px; right: -5px; + top: 10px; left: 15px; + } +</style> + +<p>Test passes if there is no red. +<div id="grid"> + <div></div> + <div></div> + <div></div> + <div></div> + <span id="mask"></span> +</div> |