diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /layout/reftests/css-grid/grid-item-sizing-percent-001.html | |
parent | Initial commit. (diff) | |
download | thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.tar.xz thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | layout/reftests/css-grid/grid-item-sizing-percent-001.html | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/layout/reftests/css-grid/grid-item-sizing-percent-001.html b/layout/reftests/css-grid/grid-item-sizing-percent-001.html new file mode 100644 index 0000000000..960247592f --- /dev/null +++ b/layout/reftests/css-grid/grid-item-sizing-percent-001.html @@ -0,0 +1,96 @@ +<!DOCTYPE html> +<!-- + Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ +--> +<html><head> + <title>CSS Test: Testing grid item percent sizes</title> + <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1163435"> + <link rel="help" href="http://dev.w3.org/csswg/css-grid/"> + <link rel="match" href="grid-item-sizing-percent-001-ref.html"> + <meta charset="utf-8"> + <style type="text/css"> +body,html { color:black; background:white; font-size:16px; padding:0; margin:0; } + +.grid { + display: grid; + position:relative; + background-color: grey; + grid-template-columns: 50px 100px; + grid-template-rows: 20px 30px; + width: 173px; + height: 53px; + justify-items: start; + align-items: start; +} + +.item { + width: 100%; + height: 100%; + background: lime; + grid-area: 1 / 1 / 2 / 2; + background-clip: content-box; + min-width: 0; + min-height: 0; +} +.c1 { + width: 40%; + height: 60%; + grid-area: 1 / 1 / 3 / 3; +} +.c2 { + grid-area: 1 / 1 / 3 / 3; +} +#abs > div div { + position: absolute; +} +.pbox { + box-sizing: border-box; +} + +.p { padding:4% 6%; } +.m { margin:4% 6%; } +.b { border:solid black; } + +</style> +</head> +<body> + +<div style="float:left"> +<div class="grid"><div class="item"></div></div> +<div class="grid"><div class="item pbox p"></div></div> +<div class="grid"><div class="item c1 p"></div></div> +<div class="grid"><div class="item c1 pbox p"></div></div> +<div class="grid"><div class="item c2 pbox p"></div></div> +<div class="grid"><div class="item pbox b"></div></div> +<div class="grid"><div class="item pbox p b"></div></div> +<div class="grid"><div class="item c1 pbox p b"></div></div> +<div class="grid"><div class="item c2 pbox p b"></div></div> +<div class="grid"><div class="item pbox m"></div></div> +<div class="grid"><div class="item c1 pbox m"></div></div> +<div class="grid"><div class="item c2 pbox m"></div></div> +<div class="grid"><div class="item pbox p m"></div></div> +<div class="grid"><div class="item pbox p b m"></div></div> +<div class="grid"><div class="item c2 pbox p b m"></div></div> +</div> + +<div id="abs" style="float:left"> +<div class="grid"><div class="item"></div></div> +<div class="grid"><div class="item pbox p"></div></div> +<div class="grid"><div class="item c1 p"></div></div> +<div class="grid"><div class="item c1 pbox p"></div></div> +<div class="grid"><div class="item c2 pbox p"></div></div> +<div class="grid"><div class="item pbox b"></div></div> +<div class="grid"><div class="item pbox p b"></div></div> +<div class="grid"><div class="item c1 pbox p b"></div></div> +<div class="grid"><div class="item c2 pbox p b"></div></div> +<div class="grid"><div class="item pbox m"></div></div> +<div class="grid"><div class="item c1 pbox m"></div></div> +<div class="grid"><div class="item c2 pbox m"></div></div> +<div class="grid"><div class="item pbox p m"></div></div> +<div class="grid"><div class="item pbox p b m"></div></div> +<div class="grid"><div class="item c2 pbox p b m"></div></div> +</div> + +</body> +</html> |