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-auto-min-sizing-intrinsic-001.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-auto-min-sizing-intrinsic-001.html')
-rw-r--r-- | layout/reftests/css-grid/grid-auto-min-sizing-intrinsic-001.html | 148 |
1 files changed, 148 insertions, 0 deletions
diff --git a/layout/reftests/css-grid/grid-auto-min-sizing-intrinsic-001.html b/layout/reftests/css-grid/grid-auto-min-sizing-intrinsic-001.html new file mode 100644 index 000000000..095cc1b5b --- /dev/null +++ b/layout/reftests/css-grid/grid-auto-min-sizing-intrinsic-001.html @@ -0,0 +1,148 @@ +<!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: auto min-sizing with intrinsic min-width</title> + <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1176775"> + <link rel="help" href="https://drafts.csswg.org/css-grid/#min-size-auto"> + <link rel="match" href="grid-auto-min-sizing-intrinsic-001-ref.html"> + <style type="text/css"> +body,html { color:black; background:white; font-family:monospace; font-size:16px; padding:0; margin:0; } + +.grid { + display: grid; + grid-template-columns: minmax(auto,0) minmax(0,1fr); + border: 1px solid; + width: 500px; + align-items: start; + justify-items: start; +} +span,img { min-height:0; } + +.c1 { border:2px solid; min-width:auto; } +.c3 { background: blue; min-width:-moz-min-content; min-width:-webkit-min-content; } +.c4 { background: lime; min-width:-moz-max-content; min-width:-webkit-max-content; } +.c5 { background: cyan; min-width:-moz-available; min-width:-webkit-fill; } +.c6 { background: yellow; min-width:-moz-fit-content; min-width:-webkit-fit-content; } +.w20 { width: 20px; } +.w450 { width: 450px; } +.max50 { max-width: 50px; } +.h05 { height: 0.5px; } +.h4 { height: 4px; } + +c2 { opacity:0.5; background: grey; min-height:10px; } +i { display:inline-block; width:20px; height:10px; background:blue; } + </style> +</head> +<body> + +<!-- TODO: row height doesn't seem right - revisit after bug 1174569 +<div class="grid"> + <span class="c1"><i></i><i></i><i></i><i></i><i></i></span><c2></c2> +</div> +--> +<div class="grid"> + <span class="c1"></span><c2></c2> +</div> +<div class="grid"> + <span class="c1 w20"><i></i><i></i><i></i><i></i><i></i></span><c2></c2> +</div> +<div class="grid"> + <span class="c1 w450"><i></i><i></i><i></i><i></i><i></i></span><c2></c2> +</div> +<!-- TODO: disabled until we have support for "transferred size" +<div class="grid"> + <img class="c1" src="support/lime-25x1.png"><c2></c2> +</div> +<div class="grid"> + <img class="c1 h05" src="support/lime-25x1.png"><c2></c2> +</div> +<div class="grid"> + <img class="c1 h4" src="support/lime-25x1.png"><c2></c2> +</div> +<div class="grid"> + <img class="c1 h4 max50" src="support/lime-25x1.png"><c2></c2> +</div> +<div class="grid"> + <img class="c1 w20" src="support/lime-25x1.png"><c2></c2> +</div> +<div class="grid"> + <img class="c1 w450" src="support/lime-25x1.png"><c2></c2> +</div> +<div class="grid"> + <img class="c1 w450 max50" src="support/lime-25x1.png"><c2></c2> +</div> +--> +<!-- TODO: row height doesn't seem right - revisit after bug 1174569 +<div class="grid" style="margin-left:300px; width:200px"> + <span class="c3"><i></i><i></i><i></i><i></i><i></i></span><c2></c2> +</div> +--> +<div class="grid"> + <span class="c4"><i></i><i></i><i></i><i></i><i></i></span><c2></c2> +</div> +<div class="grid"> + <span class="c4 w20"><i></i><i></i><i></i><i></i><i></i></span><c2></c2> +</div> +<div class="grid"> + <span class="c4 w450"><i></i><i></i><i></i><i></i><i></i></span><c2></c2> +</div> +<div class="grid"> + <span class="c4 w450 max50"><i></i><i></i><i></i><i></i><i></i></span><c2></c2> +</div> +<div class="grid"> + <span class="c5"><i></i><i></i><i></i><i></i><i></i></span><c2></c2> +</div> +<div class="grid" style="margin-left:40px;margin-bottom:100px"> + <span class="c5 w20"><i></i><i></i><i></i><i></i><i></i></span><c2></c2> +</div> +<div class="grid"> + <span class="c5 w450"><i></i><i></i><i></i><i></i><i></i></span><c2></c2> +</div> +<!-- TODO: row height doesn't seem right - revisit after bug 1174569 +<div class="grid" style="margin-bottom:2em"> + <span class="c5 w450 max50"><i></i><i></i><i></i><i></i><i></i></span><c2></c2> +</div> +--> +<div class="grid"> + <span class="c6"><i></i><i></i><i></i><i></i><i></i></span><c2></c2> +</div> +<div class="grid" style="margin-left:40px;margin-bottom:100px"> + <span class="c6 w20"><i></i><i></i><i></i><i></i><i></i></span><c2></c2> +</div> +<div class="grid"> + <span class="c6 w450"><i></i><i></i><i></i><i></i><i></i></span><c2></c2> +</div> +<!-- TODO: row height doesn't seem right - revisit after bug 1174569 +<div class="grid" style="margin-bottom:2em"> + <span class="c6 w450 max50"><i></i><i></i><i></i><i></i><i></i></span><c2></c2> +</div> +--> +<!-- TODO: row height doesn't seem right - revisit after bug 1174569 +<div class="grid"> + <img class="c3" src="support/lime-25x1.png"><c2></c2> +</div> +<div class="grid"> + <img class="c4" src="support/lime-25x1.png"><c2></c2> +</div> +<div class="grid"> + <img class="c5" src="support/lime-25x1.png"><c2></c2> +</div> +--> +<!-- TODO: disabled until we have support for "transferred size" +<div class="grid"> + <img class="c6" src="support/lime-25x1.png"><c2></c2> +</div> +<div class="grid"> + <img class="c6 w450" src="support/lime-25x1.png"><c2></c2> +</div> +<div class="grid"> + <img class="c6 w450 max50" src="support/lime-25x1.png"><c2></c2> +</div> +--> + +</body> +</html> |