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-auto-min-size-clamp-007-ref.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 'layout/reftests/css-grid/grid-item-auto-min-size-clamp-007-ref.html')
-rw-r--r-- | layout/reftests/css-grid/grid-item-auto-min-size-clamp-007-ref.html | 155 |
1 files changed, 155 insertions, 0 deletions
diff --git a/layout/reftests/css-grid/grid-item-auto-min-size-clamp-007-ref.html b/layout/reftests/css-grid/grid-item-auto-min-size-clamp-007-ref.html new file mode 100644 index 0000000000..fc1821a4ef --- /dev/null +++ b/layout/reftests/css-grid/grid-item-auto-min-size-clamp-007-ref.html @@ -0,0 +1,155 @@ +<!DOCTYPE html> +<!-- + Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ +--> +<html><head> + <meta charset="utf-8"> + <title>Reference: Clamp 'automatic minimum size' to definite max-sizing for items with specified intrinsic 'width'/'height'</title> + <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1300369"> + <style type="text/css"> +body,html { color:black; background:white; font:16px/1 monospace; padding:0; margin:0; } + +.grid { + display: grid; + float: left; + position: relative; + grid-template-columns: repeat(2,20px); + grid-template-rows: repeat(2,20px); + align-items: start; + justify-items: start; + border: 1px dashed; + margin-right: 16px; + margin-bottom: 14px; +} +.c-auto { grid-template-columns: 15px; width: 15px; } +.c-30 { grid-template-columns: 30px; width: 30px; } +.r-auto { grid-template-rows: 15px; height: 15px; } +.r-min { grid-template-rows: 40px; height: 40px; } +.r-max { grid-template-rows: 40px; height: 40px; } +span { + grid-area: 1 / 1; + font-size: 48px; + background: grey; +} +y { + position: absolute; + grid-area: 2 / 1 / 3 / 2; + top:0;left:0;right:0; + height: 10px; + background: lightgrey; +} +.r y { + grid-area: 1 / 2 / 2 / 3; + top:0;bottom:0;left:0; + width: 10px; + height: auto; +} +br { clear: both; } + +x { display:block; width:30px; height:40px; } +span { width:15px; } +.r span { width:20px; } +.grid.c-30 span, .r.grid.c-30 span { width:30px; } +.grid.r-auto span { height:40px; } +.r span { height:15px; } +.r.r-min span, .r.r-max span { height:40px; } + </style> +</head> +<body> + +<div class="grid c-auto"><y></y><span style="width:30px"><x>X</x></span></div> +<div class="grid c-30"><y></y><span><x>X</x></span></div> +<div class="grid c-30"><y></y><span><x>X</x></span></div> +<div class="grid c-30"><y></y><span><x>X</x></span></div> +<div class="grid c-30"><y></y><span><x>X</x></span></div> + +<br> + +<div class="grid c-30"><y></y><span><x>X</x></span></div> +<div class="grid c-30"><y></y><span><x>X</x></span></div> +<div class="grid c-30"><y></y><span><x>X</x></span></div> +<div class="grid c-30"><y></y><span><x>X</x></span></div> +<div class="grid c-30"><y></y><span><x>X</x></span></div> + +<br> + +<div class="grid c-30"><y></y><span><x>X</x></span></div> +<div class="grid c-30"><y></y><span><x>X</x></span></div> +<div class="grid c-30"><y></y><span><x>X</x></span></div> +<div class="grid c-30"><y></y><span><x>X</x></span></div> +<div class="grid c-30"><y></y><span><x>X</x></span></div> + +<br> + +<div class="grid r r-auto"><y></y><span style="width:30px"><x>X</x></span></div> +<div class="grid r r-auto"><y></y><span style="width:30px"><x>X</x></span></div> +<div class="grid r r-auto"><y></y><span style="width:30px"><x>X</x></span></div> +<div class="grid r r-auto"><y></y><span style="width:30px"><x>X</x></span></div> +<div class="grid r r-auto"><y></y><span style="width:20px"><x>X</x></span></div> + +<br> + +<div class="grid r r-min"><y></y><span><x>X</x></span></div> +<div class="grid r r-min"><y></y><span><x>X</x></span></div> +<div class="grid r r-min"><y></y><span><x>X</x></span></div> +<div class="grid r r-min"><y></y><span><x>X</x></span></div> +<div class="grid r r-min"><y></y><span><x>X</x></span></div> + +<br> + +<div class="grid r r-max"><y></y><span><x>X</x></span></div> +<div class="grid r r-max"><y></y><span><x>X</x></span></div> +<div class="grid r r-max"><y></y><span><x>X</x></span></div> +<div class="grid r r-max"><y></y><span><x>X</x></span></div> +<div class="grid r r-max"><y></y><span><x>X</x></span></div> + +<br> + +<div class="grid r c-30 r-auto"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-auto"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-auto"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-auto"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-auto"><y></y><span><x>X</x></span></div> + +<br> + +<div class="grid r c-30 r-min"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-min"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-min"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-min"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-min"><y></y><span><x>X</x></span></div> + +<br> + +<div class="grid r c-30 r-max"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-max"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-max"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-max"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-max"><y></y><span><x>X</x></span></div> + +<br> + +<div class="grid r c-30 r-auto"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-auto"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-auto"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-auto"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-auto"><y></y><span><x>X</x></span></div> + +<br> + +<div class="grid r c-30 r-min"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-min"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-min"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-min"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-min"><y></y><span><x>X</x></span></div> + +<br> + +<div class="grid r c-30 r-max"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-max"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-max"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-max"><y></y><span><x>X</x></span></div> +<div class="grid r c-30 r-max"><y></y><span><x>X</x></span></div> + +</body></html> |