diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-grid/abspos/grid-positioned-items-and-autofit-tracks-006.html | |
parent | Initial commit. (diff) | |
download | firefox-upstream.tar.xz firefox-upstream.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-grid/abspos/grid-positioned-items-and-autofit-tracks-006.html')
-rw-r--r-- | testing/web-platform/tests/css/css-grid/abspos/grid-positioned-items-and-autofit-tracks-006.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-grid/abspos/grid-positioned-items-and-autofit-tracks-006.html b/testing/web-platform/tests/css/css-grid/abspos/grid-positioned-items-and-autofit-tracks-006.html new file mode 100644 index 0000000000..3cd46f475b --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/abspos/grid-positioned-items-and-autofit-tracks-006.html @@ -0,0 +1,40 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS Grid Layout Test: Grid positioned items in auto-fit tracks and gaps</title> +<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com"> +<link rel="help" href="https://drafts.csswg.org/css-grid-1/#abspos" title="9. Absolute Positioning"> +<link rel="help" href="https://drafts.csswg.org/css-grid-1/#auto-repeat" title="7.2.2.2. Repeat-to-fill: auto-fill and auto-fit repetitions"> +<link rel="help" href="https://drafts.csswg.org/css-grid-1/#valdef-repeat-auto-fit"> +<meta name="assert" content="This test checks that positioned items ignore collapsed gaps but consider those between in-flow items inside their grid area."> +<link rel="stylesheet" href="/css/support/grid.css"> +<style> +.container { + width: 200px; +} +.grid { + position: relative; + grid: 10px / repeat(auto-fit, 30px); + grid-gap: 5px; +} +span { + background: blue; +} +.abs { + position: absolute; + top:0; right:0; bottom:0; left:0; + background: pink; +} +</style> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/resources/check-layout-th.js"></script> +<body onload="checkLayout('.grid')"> +<div id="log"></div> +<br> +<div class="container"> + <div class="grid"> + <span style="grid-column: 2 / 5" class="abs" data-expected-width="65" data-expected-height="10"></span> + <span style="grid-column: 2 / 4" data-expected-width="65" data-expected-height="10"></span> + </div> +</div> +</body> |