diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
commit | 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /layout/reftests/css-grid/grid-item-intrinsic-size-normal-001.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/css-grid/grid-item-intrinsic-size-normal-001.html')
-rw-r--r-- | layout/reftests/css-grid/grid-item-intrinsic-size-normal-001.html | 168 |
1 files changed, 168 insertions, 0 deletions
diff --git a/layout/reftests/css-grid/grid-item-intrinsic-size-normal-001.html b/layout/reftests/css-grid/grid-item-intrinsic-size-normal-001.html new file mode 100644 index 0000000000..1ef9fe1fed --- /dev/null +++ b/layout/reftests/css-grid/grid-item-intrinsic-size-normal-001.html @@ -0,0 +1,168 @@ +<!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: stretching intrinsic size items with 'normal' and/or 'stretch' and min/max-size, with Automatic Minimum Size clamping</title> + <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id="> + <link rel="help" href="https://drafts.csswg.org/css-align-3/#valdef-justify-self-normal"> + <link rel="match" href="grid-item-intrinsic-ratio-normal-003-ref.html"> + <style type="text/css"> +* { vertical-align: bottom; } +.grid { + display: inline-grid; + border: 3px solid grey; + grid: 32px / 4px; + margin-right:20px; +} +.r { grid: 4px / 32px; } + +button { + border: 1px solid; + padding: 0; + margin: 0; + background: lightgrey; +} + +.start {align-self:start; justify-self:start} +.na {align-self:normal; justify-self:start} +.sa {align-self:stretch; justify-self:start} +.an {align-self:start; justify-self:normal} +.as {align-self:start; justify-self:stretch} +.w20 { width: 20px } +.mw20 { min-width: 20px } +.mxw10 { max-width: 10px } +.mxw2 { max-width: 2px } +.mw0 { min-width: 0px } + +.h20 { height: 20px } +.mh20 { min-height: 20px } +.mxh10 { max-height: 10px } +.mxh2 { max-height: 2px } +.mh0 { min-height: 0px } + + </style> +</head> +<body> + +<div class="grid r"><button></button></div> +<div class="grid r"><button class="start"></button></div> +<div class="grid r"><button class="sa"></button></div> +<div class="grid r"><button class="sa mxw10"></button></div> +<div class="grid r"><button class="na"></button></div> +<div class="grid r"><button class="na mxw2"></button></div> + +<pre><!--min-height:20px--></pre> +<div class="grid r"><button class="mh20"></button></div> +<div class="grid r"><button class="mh20 mxw10"></button></div> +<div class="grid r"><button class="start mh20"></button></div> +<div class="grid r"><button class="start mh20 mxw10"></button></div> +<div class="grid r"><button class="sa mh20"></button></div> +<div class="grid r"><button class="sa mh20 mxw10"></button></div> +<div class="grid r"><button class="na mh20"></button></div> +<div class="grid r"><button class="na mh20 mxw10"></button></div> + +<pre><!--min-height:0--></pre> +<div class="grid r"><button class="mh0"></button></div> +<div class="grid r"><button class="mh0 mxw10"></button></div> +<div class="grid r"><button class="start mh0"></button></div> +<div class="grid r"><button class="start mh0 mxw10"></button></div> +<div class="grid r"><button class="sa mh0"></button></div> +<div class="grid r"><button class="sa mh0 mxw10"></button></div> +<div class="grid r"><button class="na mh0"></button></div> +<div class="grid r"><button class="na mh0 mxw2"></button></div> + +<pre><!----></pre> + +<div class="grid"><button></button></div> +<div class="grid"><button class="mxw2"></button></div> +<div class="grid"><button class="start"></button></div> +<div class="grid"><button class="start mxw2"></button></div> +<div class="grid"><button class="sa"></button></div> +<div class="grid"><button class="sa mxw2"></button></div> +<div class="grid"><button class="na"></button></div> +<div class="grid"><button class="na mxw2"></button></div> + +<pre><!--min-width:20px--></pre> +<div class="grid"><button class="mw20"></button></div> +<div class="grid"><button class="mw20 mxh10"></button></div> +<div class="grid"><button class="start mw20"></button></div> +<div class="grid"><button class="start mw20 mxh10"></button></div> +<div class="grid"><button class="sa mw20"></button></div> +<div class="grid"><button class="sa mw20 mxh10"></button></div> +<div class="grid"><button class="na mw20"></button></div> +<div class="grid"><button class="na mw20 mxh10"></button></div> + +<pre><!--min-width:0--></pre> +<div class="grid"><button class="mw0"></button></div> +<div class="grid"><button class="mw0 mxh10"></button></div> +<div class="grid"><button class="start mw0"></button></div> +<div class="grid"><button class="start mw0 mxh10"></button></div> +<div class="grid"><button class="sa mw0"></button></div> +<div class="grid"><button class="sa mw0 mxh10"></button></div> +<div class="grid"><button class="na mw0"></button></div> +<div class="grid"><button class="na mw0 mxh10"></button></div> + +<pre><!--width:20px--></pre> + +<div class="grid r"><button class="w20"></button></div> +<div class="grid r"><button class="w20 mxh10"></button></div> +<div class="grid r"><button class="start w20"></button></div> +<div class="grid r"><button class="start w20 mxh10"></button></div> +<div class="grid r"><button class="sa w20"></button></div> +<div class="grid r"><button class="sa w20 mxh2"></button></div> +<div class="grid r"><button class="na w20"></button></div> +<div class="grid r"><button class="na w20 mxh2"></button></div> + +<pre><!--width:20px--></pre> + +<div class="grid"><button class="start w20"></button></div> +<div class="grid"><button class="start w20 mxh10"></button></div> +<div class="grid"><button class="start w20"></button></div> +<div class="grid"><button class="start w20 mxh10"></button></div> +<div class="grid"><button class="sa w20"></button></div> +<div class="grid"><button class="sa w20 mxh10"></button></div> +<div class="grid"><button class="na w20"></button></div> +<div class="grid"><button class="na w20 mxh10"></button></div> + +<pre><!--height:20px--></pre> + +<div class="grid r"><button class="h20"></button></div> +<div class="grid r"><button class="h20 mxw10"></button></div> +<div class="grid r"><button class="start h20"></button></div> +<div class="grid r"><button class="start h20 mxw10"></button></div> +<div class="grid r"><button class="as h20"></button></div> +<div class="grid r"><button class="as h20 mxw10"></button></div> +<div class="grid r"><button class="an h20"></button></div> +<div class="grid r"><button class="an h20 mxw10"></button></div> + +<pre><!--height:20px--></pre> + +<div class="grid"><button class="h20"></button></div> +<div class="grid"><button class="h20 mxw2"></button></div> +<div class="grid"><button class="start h20"></button></div> +<div class="grid"><button class="start h20 mxw10"></button></div> +<div class="grid"><button class="as h20"></button></div> +<div class="grid"><button class="as h20 mxw2"></button></div> +<div class="grid"><button class="an h20"></button></div> +<div class="grid"><button class="an h20 mxw10"></button></div> + + +<!-- For generating button size results in -ref file +<script> +document.body.clientHeight; +var buttons = document.querySelectorAll('button'); +var s = ' [\n'; +for (var i = 0; i < buttons.length; ++i) { + var cs = window.getComputedStyle(buttons[i]); + s += " ['"+ cs['width'] + "', '" + cs['height'] + "'],\n"; +} +s += ']'; +console.log(s) +</script> +--> + +</body> +</html> |