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-repeat-auto-fill-fit-005.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-repeat-auto-fill-fit-005.html')
-rw-r--r-- | layout/reftests/css-grid/grid-repeat-auto-fill-fit-005.html | 377 |
1 files changed, 377 insertions, 0 deletions
diff --git a/layout/reftests/css-grid/grid-repeat-auto-fill-fit-005.html b/layout/reftests/css-grid/grid-repeat-auto-fill-fit-005.html new file mode 100644 index 0000000000..b6b521787f --- /dev/null +++ b/layout/reftests/css-grid/grid-repeat-auto-fill-fit-005.html @@ -0,0 +1,377 @@ +<!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: repeat(auto-fill/auto-fit)</title> + <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1118820"> + <link rel="help" href="https://drafts.csswg.org/css-grid/#valdef-repeat-auto-fill"> + <link rel="match" href="grid-repeat-auto-fill-fit-005-ref.html"> + <style type="text/css"> +html,body { + color:black; background-color:white; font-size:16px; +} + +.grid { + display: grid; + float: left; + position: relative; + border: 2px solid; + grid-auto-columns: 10px; + grid-auto-rows: 10px; + grid-auto-flow: column; + grid-gap: 2px; + margin-right: 2px; + padding-top: 3px; + padding-bottom: 2px; +} + +.r0 { grid-template-rows: [a] repeat(auto-fill, [b] 0 [c]) [d]; } +.r1 { grid-template-rows: [a] repeat(auto-fill, [b] 20px [c]) [d]; } +.r2 { grid-template-rows: [a] repeat(auto-fill, [b] 20px [c]) [d] 30px [e]; } +.r02 { grid-template-rows: [a] repeat(auto-fill, [b] 0 [c]) [d] 30px [e]; } +.r3 { grid-template-rows: [a] repeat(auto-fill, [b] 20px [c]) [d] 30px [e] 30px [f]; } +.r03 { grid-template-rows: [a] repeat(auto-fill, [b] 0 [c]) [d] 30px [e] 30px [f]; } +.ra { grid-template-rows: [a] repeat(auto-fill, [b] 20px [c]) [d] 30px [e] 10px [f]; } + +fit .r0 { grid-template-rows: [a] repeat(auto-fit, [b] 0 [c]) [d]; } +fit .r1 { grid-template-rows: [a] repeat(auto-fit, [b] 20px [c]) [d]; } +fit .r2 { grid-template-rows: [a] repeat(auto-fit, [b] 20px [c]) [d] 30px [e]; } +fit .r02 { grid-template-rows: [a] repeat(auto-fit, [b] 0 [c]) [d] 30px [e]; } +fit .r3 { grid-template-rows: [a] repeat(auto-fit, [b] 20px [c]) [d] 30px [e] 30px [f]; } +fit .r03 { grid-template-rows: [a] repeat(auto-fit, [b] 0 [c]) [d] 30px [e] 30px [f]; } +fit .ra { grid-template-rows: [a] repeat(auto-fit, [b] 20px [c]) [d] 30px [e] 10px [f]; } + +.w100 { height: 100px; } +.w3 { height: 3px; } +.w20 { height: 20px; } +.w50 { height: 50px; } +.w80 { height: 80px; } +.mw100 { min-height: 100px; } +.mw3 { height: 3px; } +.mw20 { height: 20px; } +.mw50 { min-height: 50px; } +.mw80 { min-height: 80px; } +.xw100 { max-height: 100px; } +.xw3 { height: 3px; } +.xw20 { height: 20px; } +.xw50 { max-height: 50px; } +.xw80 { max-height: 80px; } + +.w { width:10px} + +x { + height: 10px; + background: grey; +} +a { + position: absolute; + left:0; top:0; bottom:0; width: 3px; + background: black; + grid-row: c / c -1; +} +b { + position: absolute; + right:0; top:0; bottom:0; width: 3px; + background: brown; + grid-row: auto / c -1; +} + +x:first-child { + background: lime; +} +x:last-child { + background: blue; +} + +fill,fit { + float: left; + height: 400px; +} +</style> +</head> +<body> + +<fill> + +<div class="grid r1 w20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 w3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 xw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 xw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 mw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 mw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 w20 xw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 w3 mw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 w3 mw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 xw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 xw3 mw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 mw20"><x></x><x></x><a></a><b></b><x></x></div> + +<br clear="all"> +<br clear="all"> + +<div class="grid r1 w w20"><a></a><b></b></div> +<div class="grid r1 w w3"><a></a><b></b></div> +<div class="grid r1 w xw20"><a></a><b></b></div> +<div class="grid r1 w xw3"><a></a><b></b></div> +<div class="grid r1 w mw20"><a></a><b></b></div> +<div class="grid r1 w mw3"><a></a><b></b></div> +<div class="grid r1 w w20 xw3"><a></a><b></b></div> +<div class="grid r1 w w3 mw20"><a></a><b></b></div> +<div class="grid r1 w w3 mw3"><a></a><b></b></div> +<div class="grid r1 w xw20"><a></a><b></b></div> +<div class="grid r1 w xw3 mw20"><a></a><b></b></div> +<div class="grid r1 w mw20"><a></a><b></b></div> + +<div class="grid r1" style="min-height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1" style="height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1" style="min-height:0; height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1" style="max-height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid ra"><x></x><x></x><a></a><b></b><x></x></div> + +<div class="grid w r1" style="min-height:0"><a></a><b></b></div> +<div class="grid w r1" style="height:0"><a></a><b></b></div> +<div class="grid w r1" style="min-height:0; height:0"><a></a><b></b></div> +<div class="grid w r1" style="max-height:0"><a></a><b></b></div> +<div class="grid w r0"><a></a><b></b></div> +<div class="grid w ra"><a></a><b></b></div> + +<br clear="all"> +<br clear="all"> + +<div class="grid r2 w20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 w3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 xw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 xw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 mw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 mw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 w20 xw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 w3 mw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 w3 mw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 xw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 xw3 mw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 mw20"><x></x><x></x><a></a><b></b><x></x></div> + +<br clear="all"> +<br clear="all"> + +<div class="grid r2 w w20"><a></a><b></b></div> +<div class="grid r2 w w3"><a></a><b></b></div> +<div class="grid r2 w xw20"><a></a><b></b></div> +<div class="grid r2 w xw3"><a></a><b></b></div> +<div class="grid r2 w mw20"><a></a><b></b></div> +<div class="grid r2 w mw3"><a></a><b></b></div> +<div class="grid r2 w w20 xw3"><a></a><b></b></div> +<div class="grid r2 w w3 mw20"><a></a><b></b></div> +<div class="grid r2 w w3 mw3"><a></a><b></b></div> +<div class="grid r2 w xw20"><a></a><b></b></div> +<div class="grid r2 w xw3 mw20"><a></a><b></b></div> +<div class="grid r2 w mw20"><a></a><b></b></div> + +<div class="grid r2" style="min-height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2" style="height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2" style="min-height:0; height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2" style="max-height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid ra"><x></x><x></x><a></a><b></b><x></x></div> + +<div class="grid w r2" style="min-height:0"><a></a><b></b></div> +<div class="grid w r2" style="height:0"><a></a><b></b></div> +<div class="grid w r2" style="min-height:0; height:0"><a></a><b></b></div> +<div class="grid w r2" style="max-height:0"><a></a><b></b></div> +<div class="grid w r02"><a></a><b></b></div> + + +<br clear="all"> +<br clear="all"> + +<div class="grid r3 w20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 w3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 xw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 xw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 mw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 mw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 w20 xw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 w3 mw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 w3 mw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 xw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 xw3 mw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 mw20"><x></x><x></x><a></a><b></b><x></x></div> + +<br clear="all"> +<br clear="all"> + +<div class="grid r3 w w20"><a></a><b></b></div> +<div class="grid r3 w w3"><a></a><b></b></div> +<div class="grid r3 w xw20"><a></a><b></b></div> +<div class="grid r3 w xw3"><a></a><b></b></div> +<div class="grid r3 w mw20"><a></a><b></b></div> +<div class="grid r3 w mw3"><a></a><b></b></div> +<div class="grid r3 w w20 xw3"><a></a><b></b></div> +<div class="grid r3 w w3 mw20"><a></a><b></b></div> +<div class="grid r3 w w3 mw3"><a></a><b></b></div> +<div class="grid r3 w xw20"><a></a><b></b></div> +<div class="grid r3 w xw3 mw20"><a></a><b></b></div> +<div class="grid r3 w mw20"><a></a><b></b></div> + +<div class="grid r3" style="min-height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3" style="height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3" style="min-height:0; height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3" style="max-height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid ra"><x></x><x></x><a></a><b></b><x></x></div> + +<div class="grid w r3" style="min-height:0"><a></a><b></b></div> +<div class="grid w r3" style="height:0"><a></a><b></b></div> +<div class="grid w r3" style="min-height:0; height:0"><a></a><b></b></div> +<div class="grid w r3" style="max-height:0"><a></a><b></b></div> +<div class="grid w r03"><a></a><b></b></div> + + +</fill> + +<fit> + +<div class="grid r1 w20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 w3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 xw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 xw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 mw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 mw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 w20 xw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 w3 mw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 w3 mw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 xw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 xw3 mw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 mw20"><x></x><x></x><a></a><b></b><x></x></div> + +<br clear="all"> +<br clear="all"> + +<div class="grid r1 w w20"><a></a><b></b></div> +<div class="grid r1 w w3"><a></a><b></b></div> +<div class="grid r1 w xw20"><a></a><b></b></div> +<div class="grid r1 w xw3"><a></a><b></b></div> +<div class="grid r1 w mw20"><a></a><b></b></div> +<div class="grid r1 w mw3"><a></a><b></b></div> +<div class="grid r1 w w20 xw3"><a></a><b></b></div> +<div class="grid r1 w w3 mw20"><a></a><b></b></div> +<div class="grid r1 w w3 mw3"><a></a><b></b></div> +<div class="grid r1 w xw20"><a></a><b></b></div> +<div class="grid r1 w xw3 mw20"><a></a><b></b></div> +<div class="grid r1 w mw20"><a></a><b></b></div> + +<div class="grid r1" style="min-height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1" style="height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1" style="min-height:0; height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1" style="max-height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid ra"><x></x><x></x><a></a><b></b><x></x></div> + +<div class="grid w r1" style="min-height:0"><a></a><b></b></div> +<div class="grid w r1" style="height:0"><a></a><b></b></div> +<div class="grid w r1" style="min-height:0; height:0"><a></a><b></b></div> +<div class="grid w r1" style="max-height:0"><a></a><b></b></div> +<div class="grid w r0"><a></a><b></b></div> +<div class="grid w ra"><a></a><b></b></div> + +<br clear="all"> +<br clear="all"> + +<div class="grid r2 w20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 w3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 xw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 xw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 mw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 mw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 w20 xw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 w3 mw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 w3 mw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 xw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 xw3 mw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 mw20"><x></x><x></x><a></a><b></b><x></x></div> + +<br clear="all"> +<br clear="all"> + +<div class="grid r2 w w20"><a></a><b></b></div> +<div class="grid r2 w w3"><a></a><b></b></div> +<div class="grid r2 w xw20"><a></a><b></b></div> +<div class="grid r2 w xw3"><a></a><b></b></div> +<div class="grid r2 w mw20"><a></a><b></b></div> +<div class="grid r2 w mw3"><a></a><b></b></div> +<div class="grid r2 w w20 xw3"><a></a><b></b></div> +<div class="grid r2 w w3 mw20"><a></a><b></b></div> +<div class="grid r2 w w3 mw3"><a></a><b></b></div> +<div class="grid r2 w xw20"><a></a><b></b></div> +<div class="grid r2 w xw3 mw20"><a></a><b></b></div> +<div class="grid r2 w mw20"><a></a><b></b></div> + +<div class="grid r2" style="min-height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2" style="height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2" style="min-height:0; height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2" style="max-height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid ra"><x></x><x></x><a></a><b></b><x></x></div> + +<div class="grid w r2" style="min-height:0"><a></a><b></b></div> +<div class="grid w r2" style="height:0"><a></a><b></b></div> +<div class="grid w r2" style="min-height:0; height:0"><a></a><b></b></div> +<div class="grid w r2" style="max-height:0"><a></a><b></b></div> +<div class="grid w r02"><a></a><b></b></div> + + +<br clear="all"> +<br clear="all"> + +<div class="grid r3 w20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 w3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 xw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 xw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 mw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 mw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 w20 xw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 w3 mw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 w3 mw3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 xw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 xw3 mw20"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 mw20"><x></x><x></x><a></a><b></b><x></x></div> + +<br clear="all"> +<br clear="all"> + +<div class="grid r3 w w20"><a></a><b></b></div> +<div class="grid r3 w w3"><a></a><b></b></div> +<div class="grid r3 w xw20"><a></a><b></b></div> +<div class="grid r3 w xw3"><a></a><b></b></div> +<div class="grid r3 w mw20"><a></a><b></b></div> +<div class="grid r3 w mw3"><a></a><b></b></div> +<div class="grid r3 w w20 xw3"><a></a><b></b></div> +<div class="grid r3 w w3 mw20"><a></a><b></b></div> +<div class="grid r3 w w3 mw3"><a></a><b></b></div> +<div class="grid r3 w xw20"><a></a><b></b></div> +<div class="grid r3 w xw3 mw20"><a></a><b></b></div> +<div class="grid r3 w mw20"><a></a><b></b></div> + +<div class="grid r3" style="min-height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3" style="height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3" style="min-height:0; height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3" style="max-height:0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r0"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid ra"><x></x><x></x><a></a><b></b><x></x></div> + +<div class="grid w r3" style="min-height:0"><a></a><b></b></div> +<div class="grid w r3" style="height:0"><a></a><b></b></div> +<div class="grid w r3" style="min-height:0; height:0"><a></a><b></b></div> +<div class="grid w r3" style="max-height:0"><a></a><b></b></div> +<div class="grid w r03"><a></a><b></b></div> + + +</fit> + + +</body> +</html> |