diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /layout/reftests/css-grid/grid-item-auto-min-size-clamp-003-ref.html | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/reftests/css-grid/grid-item-auto-min-size-clamp-003-ref.html')
-rw-r--r-- | layout/reftests/css-grid/grid-item-auto-min-size-clamp-003-ref.html | 230 |
1 files changed, 230 insertions, 0 deletions
diff --git a/layout/reftests/css-grid/grid-item-auto-min-size-clamp-003-ref.html b/layout/reftests/css-grid/grid-item-auto-min-size-clamp-003-ref.html new file mode 100644 index 000000000..b6844cc50 --- /dev/null +++ b/layout/reftests/css-grid/grid-item-auto-min-size-clamp-003-ref.html @@ -0,0 +1,230 @@ +<!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 intrinsic ratio item</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; + grid-template-columns: repeat(2,minmax(auto, 15px)); + grid-template-rows: repeat(2,minmax(auto, 10px)); + grid-gap: 1px; + align-items: start; + justify-items: start; + float: left; + border: 1px dashed; + margin-right: 16px; + margin-bottom: 14px; +} +.sz { + width: 40px; + height: 40px; +} + +.definite { + grid-template-columns: repeat(2,15px); + grid-template-rows: repeat(2,10px); +} +.min { + grid-template-columns: repeat(2,minmax(min-content, 15px)); + grid-template-rows: repeat(2,minmax(min-content, 10px)); +} +.max { + grid-template-columns: repeat(2,minmax(max-content, 15px)); + grid-template-rows: repeat(2,minmax(max-content, 10px)); +} + +.larger .grid { + grid-template-columns: repeat(2,minmax(auto, 25px)); + grid-template-rows: repeat(2,minmax(auto, 28px)); +} +.larger .definite { + grid-template-columns: repeat(2,25px); + grid-template-rows: repeat(2,28px); +} +.larger .min { + grid-template-columns: repeat(2,minmax(min-content, 25px)); + grid-template-rows: repeat(2,minmax(min-content, 28px)); +} +.larger .max { + grid-template-columns: repeat(2,minmax(max-content, 25px)); + grid-template-rows: repeat(2,minmax(max-content, 28px)); +} + +.stretch .grid { + align-items: stretch; + justify-items: stretch; +} +.grid.a { + width:54px; +} +.grid.a2 { + width:38px; +} +.larger .grid.a { + width:64px; +} +.larger .grid.a2 { + width:51px; +} +img { + grid-area: 1 / 1; + border: 1px solid; + padding: 1px 3px 5px 7px; + margin: 3px 5px 7px 1px; + width: 0; + height: 0; +} +.span2 { + grid-area: 1 / 1 / span 2 / span 2; +} + +x { + grid-area: 1 / 1; + min-width: 0; + min-height: 0; + align-self: stretch; + justify-self: stretch; + background: cyan; +} + +br { + clear: both; +} + </style> +</head> +<body> + +<div id="tests"> +<div class="grid a"><x></x><img src="support/solidblue-20x32.png"></div> +<div class="grid definite"><x></x><img src="support/solidblue-20x32.png"></div> +<div class="grid a2"><x></x><img class="span2" src="support/solidblue-20x32.png"></div> +<div class="grid definite"><x></x><img class="span2" src="support/solidblue-20x32.png"></div> + +<div class="grid sz"><x></x><img src="support/solidblue-20x32.png"></div> +<div class="grid sz definite"><x></x><img src="support/solidblue-20x32.png"></div> +<div class="grid sz"><x></x><img class="span2" src="support/solidblue-20x32.png"></div> +<div class="grid sz definite"><x></x><img class="span2" src="support/solidblue-20x32.png"></div> + +<br> + +<div class="grid min"><x></x><img src="support/solidblue-20x32.png"></div> +<div class="grid min"><x></x><img class="span2" src="support/solidblue-20x32.png"></div> +<div class="grid sz min"><x></x><img src="support/solidblue-20x32.png"></div> +<div class="grid sz min"><x></x><img class="span2" src="support/solidblue-20x32.png"></div> + +<div class="grid x1 max"><x></x><img src="support/solidblue-20x32.png"></div> +<div class="grid max"><x></x><img class="span2" src="support/solidblue-20x32.png"></div> +<div class="grid x1 sz max"><x></x><img src="support/solidblue-20x32.png"></div> +<div class="grid sz max"><x></x><img class="span2" src="support/solidblue-20x32.png"></div> + +<br> + +</div> + +<script> +var tests = document.getElementById('tests'); + +var n = tests.cloneNode(true); +var wrap = document.createElement('div'); +wrap.className = 'larger'; +wrap.appendChild(n); +document.body.appendChild(wrap); + +var n = tests.cloneNode(true); +var wrap = document.createElement('div'); +wrap.className = 'stretch'; +wrap.appendChild(n); +document.body.appendChild(wrap); + +var n = tests.cloneNode(true); +var wrap = document.createElement('div'); +wrap.className = 'stretch larger'; +wrap.appendChild(n); +document.body.appendChild(wrap); + +</script> + + +<script> +var imgSizes = +[ + ['0px', '0px'], + ['0px', '0px'], + ['2px', '3px'], + ['2px', '3px'], + ['0px', '0px'], + ['0px', '0px'], + ['2px', '3px'], + ['2px', '3px'], + ['0px', '0px'], + ['2px', '3px'], + ['0px', '0px'], + ['2px', '3px'], + ['20px', '32px'], + ['20px', '32px'], + ['20px', '32px'], + ['20px', '32px'], + ['6px', '10px'], + ['6px', '10px'], + ['20px', '32px'], + ['20px', '32px'], + ['6px', '10px'], + ['6px', '10px'], + ['20px', '32px'], + ['20px', '32px'], + ['6px', '10px'], + ['20px', '32px'], + ['6px', '10px'], + ['20px', '32px'], + ['20px', '32px'], + ['20px', '32px'], + ['20px', '32px'], + ['20px', '32px'], + ['0px', '0px'], + ['0px', '0px'], + ['13px', '3px'], + ['13px', '3px'], + ['0px', '0px'], + ['0px', '0px'], + ['13px', '3px'], + ['13px', '3px'], + ['0px', '0px'], + ['13px', '3px'], + ['0px', '0px'], + ['13px', '3px'], + ['20px', '32px'], + ['20px', '32px'], + ['20px', '32px'], + ['20px', '32px'], + ['7px', '10px'], + ['7px', '10px'], + ['33px', '39px'], + ['33px', '39px'], + ['7px', '10px'], + ['7px', '10px'], + ['22px', '32px'], + ['33px', '39px'], + ['7px', '10px'], + ['33px', '39px'], + ['7px', '10px'], + ['22px', '32px'], + ['20px', '32px'], + ['33px', '39px'], + ['20px', '32px'], + ['22px', '32px'], +]; +var imgs = document.querySelectorAll('img'); +for (var i = 0; i < imgs.length; ++i) { + imgs[i].style.width = imgSizes[i][0]; + imgs[i].style.height = imgSizes[i][1]; +} +</script> + +</body></html> |