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/grid-model/grid-box-sizing-001.html | |
parent | Initial commit. (diff) | |
download | firefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz firefox-43a97878ce14b72f0981164f87f2e35e14151312.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/grid-model/grid-box-sizing-001.html')
-rw-r--r-- | testing/web-platform/tests/css/css-grid/grid-model/grid-box-sizing-001.html | 188 |
1 files changed, 188 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-grid/grid-model/grid-box-sizing-001.html b/testing/web-platform/tests/css/css-grid/grid-model/grid-box-sizing-001.html new file mode 100644 index 0000000000..b990292934 --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/grid-model/grid-box-sizing-001.html @@ -0,0 +1,188 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS Grid Layout Test: Grid container and tracks sizes with box-sizing property</title> +<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com"> +<link rel="help" href="https://drafts.csswg.org/css-grid-1/#intrinsic-sizes"> +<link rel="help" href="https://drafts.csswg.org/css-ui-3/#box-sizing"> +<meta name="assert" content="The test checks the sizes of a grid container and its track depending on min-size constraints and the box-sizing property."> +<style> +.wrapper { + position: relative; + width: 200px; + height: 100px; +} + +.grid { + position: absolute; + left: 0; + top: 0; + display: grid; + border-style: solid; + border-width: 5px 10px 15px 20px; + padding: 17px 13px 7px 3px; +} + +.wholeWidth { + right: 0; +} + +.wholeHeight { + bottom: 0; +} +.item { + background: cyan; +} +</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> + +<div class="wrapper"> + <div class="grid wholeWidth" style="height: 100px;" data-expected-width="200" data-expected-height="144"> + <div class="item" data-expected-width="154" data-expected-height="100"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeWidth" style="min-height: 100px;" data-expected-width="200" data-expected-height="144"> + <div class="item" data-expected-width="154" data-expected-height="100"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeWidth" style="height: 100px; box-sizing: border-box;" data-expected-width="200" data-expected-height="100"> + <div class="item" data-expected-width="154" data-expected-height="56"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeWidth" style="min-height: 100px; box-sizing: border-box;" data-expected-width="200" data-expected-height="100"> + <div class="item" data-expected-width="154" data-expected-height="56"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeWidth" style="bottom: 0;" data-expected-width="200" data-expected-height="100"> + <div class="item" data-expected-width="154" data-expected-height="56"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeWidth" style="bottom: 0;" data-expected-width="200" data-expected-height="100"> + <div class="item" data-expected-width="154" data-expected-height="56"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeWidth" style="bottom: 0; box-sizing: border-box;" data-expected-width="200" data-expected-height="100"> + <div class="item" data-expected-width="154" data-expected-height="56"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeWidth" style="bottom: 0; box-sizing: border-box;" data-expected-width="200" data-expected-height="100"> + <div class="item" data-expected-width="154" data-expected-height="56"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeWidth" style="height: 100px; bottom: 0;" data-expected-width="200" data-expected-height="144"> + <div class="item" data-expected-width="154" data-expected-height="100"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeWidth" style="min-height: 100px; bottom: 0;" data-expected-width="200" data-expected-height="144"> + <div class="item" data-expected-width="154" data-expected-height="100"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeWidth" style="height: 100px; bottom: 0; box-sizing: border-box;" data-expected-width="200" data-expected-height="100"> + <div class="item" data-expected-width="154" data-expected-height="56"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeWidth" style="min-height: 100px; bottom: 0; box-sizing: border-box;" data-expected-width="200" data-expected-height="100"> + <div class="item" data-expected-width="154" data-expected-height="56"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeHeight" style="width: 200px;" data-expected-width="246" data-expected-height="100"> + <div class="item" data-expected-width="200" data-expected-height="56"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeHeight" style="min-width: 200px;" data-expected-width="246" data-expected-height="100"> + <div class="item" data-expected-width="200" data-expected-height="56"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeHeight" style="width: 200px; box-sizing: border-box;" data-expected-width="200" data-expected-height="100"> + <div class="item" data-expected-width="154" data-expected-height="56"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeHeight" style="min-width: 200px; box-sizing: border-box;" data-expected-width="200" data-expected-height="100"> + <div class="item" data-expected-width="154" data-expected-height="56"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeHeight" style="right: 0;" data-expected-width="200" data-expected-height="100"> + <div class="item" data-expected-width="154" data-expected-height="56"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeHeight" style="right: 0;" data-expected-width="200" data-expected-height="100"> + <div class="item" data-expected-width="154" data-expected-height="56"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeHeight" style="right: 0; box-sizing: border-box;" data-expected-width="200" data-expected-height="100"> + <div class="item" data-expected-width="154" data-expected-height="56"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeHeight" style="right: 0; box-sizing: border-box;" data-expected-width="200" data-expected-height="100"> + <div class="item" data-expected-width="154" data-expected-height="56"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeHeight" style="width: 200px; right: 0;" data-expected-width="246" data-expected-height="100"> + <div class="item" data-expected-width="200" data-expected-height="56"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeHeight" style="min-width: 200px; right: 0;" data-expected-width="246" data-expected-height="100"> + <div class="item" data-expected-width="200" data-expected-height="56"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeHeight" style="width: 200px; right: 0; box-sizing: border-box;" data-expected-width="200" data-expected-height="100"> + <div class="item" data-expected-width="154" data-expected-height="56"></div> + </div> +</div> + +<div class="wrapper"> + <div class="grid wholeHeight" style="min-width: 200px; right: 0; box-sizing: border-box;" data-expected-width="200" data-expected-height="100"> + <div class="item" data-expected-width="154" data-expected-height="56"></div> + </div> +</div> + +</body> |