diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /layout/reftests/css-grid/grid-repeat-auto-fill-fit-002.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/css-grid/grid-repeat-auto-fill-fit-002.html')
-rw-r--r-- | layout/reftests/css-grid/grid-repeat-auto-fill-fit-002.html | 199 |
1 files changed, 199 insertions, 0 deletions
diff --git a/layout/reftests/css-grid/grid-repeat-auto-fill-fit-002.html b/layout/reftests/css-grid/grid-repeat-auto-fill-fit-002.html new file mode 100644 index 0000000000..4a9061a010 --- /dev/null +++ b/layout/reftests/css-grid/grid-repeat-auto-fill-fit-002.html @@ -0,0 +1,199 @@ +<!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-002-ref.html"> + <style type="text/css"> +html,body { + color:black; background-color:white; font-size:16px; padding:0; margin:0; +} + +.grid { + display: grid; + float: left; + position: relative; + border: 1px solid; + grid-auto-columns: 10px; + grid-auto-rows: 10px; + grid-auto-flow: row; + grid-gap: 2px; + margin-right: 2px; + padding-top: 3px; +} +.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]; } +.r3 { grid-template-rows: [a] repeat(auto-fill, [b] 20px [c]) [d] 30px [e] 30px [f]; } +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 .r3 { grid-template-rows: [a] repeat(auto-fit, [b] 20px [c]) [d] 30px [e] 30px [f]; } + +.w100 { height: 100px; } +.w50 { height: 50px; } +.w80 { height: 80px; } +.mw100 { min-height: 100px; } +.mw50 { min-height: 50px; } +.mw80 { min-height: 80px; } +.xw100 { max-height: 100px; } +.xw50 { max-height: 50px; } +.xw80 { max-height: 80px; } +.float { float: left; } + +x { + width: 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; +} + +.zero-progress { + grid-row-gap: calc(10px - 1%); + grid-template-rows: [a] 10px repeat(auto-fill, [b] calc(1% - 10px) [c]) [d]; +} +</style> +</head> +<body> + +<fill> + +<div class="grid r1"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 w100"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 w80"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 w50"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 xw80"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 xw50"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 w100 xw80"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 mw50 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 mw80 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 w100 mw50 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 mw100 w50 float"><x></x><x></x><a></a><b></b><x></x></div> + +<br clear="all"> +<br clear="all"> + +<div class="grid r2"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 w100"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 w80"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 w50"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 xw80"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 xw50"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 w100 xw80"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 mw50 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 mw80 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 w100 mw50 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 mw100 w50 float"><x></x><x></x><a></a><b></b><x></x></div> + +<br clear="all"> +<br clear="all"> + +<div class="grid r3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 w100"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 w80"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 w50"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 xw80"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 xw50"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 w100 xw80"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 mw50 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 mw80 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 w100 mw50 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 mw100 w50 float"><x></x><x></x><a></a><b></b><x></x></div> + +</fill> + +<fit> + +<div class="grid r1"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 w100"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 w80"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 w50"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 xw80"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 xw50"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 w100 xw80"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 mw50 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 mw80 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 w100 mw50 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r1 mw100 w50 float"><x></x><x></x><a></a><b></b><x></x></div> + +<br clear="all"> +<br clear="all"> + +<div class="grid r2"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 w100"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 w80"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 w50"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 xw80"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 xw50"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 w100 xw80"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 mw50 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 mw80 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 w100 mw50 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r2 mw100 w50 float"><x></x><x></x><a></a><b></b><x></x></div> + +<br clear="all"> +<br clear="all"> + +<div class="grid r3"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 w100"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 w80"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 w50"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 xw80"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 xw50"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 w100 xw80"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 mw50 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 mw80 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 w100 mw50 float"><x></x><x></x><a></a><b></b><x></x></div> +<div class="grid r3 mw100 w50 float"><x></x><x></x><a></a><b></b><x></x></div> + +<br clear="all"> +<br clear="all"> + +<div style="float:left"> + <div class="grid xw50 zero-progress"> + <x></x><x></x><a></a><b></b><x></x> + </div> + <div class="grid w50 zero-progress"> + <x></x><x></x><a></a><b></b><x></x> + </div> + <div class="grid mw50 zero-progress"> + <x></x><x></x><a></a><b></b><x></x> + </div> +</div> + +</fit> + + +</body> +</html> |