3 Any copyright is dedicated to the Public Domain.
4 https://creativecommons.org/publicdomain/zero/1.0/
8 <title>Reference: Testing track 'auto' min-sizing function with 'min-height:min-content' on an item with an intrinsic aspect ratio
</title>
9 <link rel=
"author" title=
"Mats Palmgren" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1218178">
10 <style type=
"text/css">
11 html
,body
{ color:black
; background-color:white
; font:12px monospace
; padding:0; margin:0; }
12 body
{ overflow:hidden
; }
24 .row img { min-width:0; }
34 "width:50%; max-height:200%", "width:50%; height:200%", "width:4px; height:50%",
35 "height:50%", "max-height:200%", "max-height:50%", "max-width:50%", "width:50%; height:20px",
36 "min-width:80%; max-height:20px", "min-width:50%", "margin-left: 50px; width:50%"
39 "0/2px", "0/2px", "0/4px", "0/2px", "0/2px", "0/2px", "12px/2px", "20px/2px", "20px/2px", "24px/2px", "312px/52px"
42 "0", "0", "0", "0", "0", "0", "12px", "20px", "20px", "24px", "312px"
45 var h3
= document
.createElement('h3');
46 h3
.appendChild(document
.createTextNode("grid-template-rows:minmax(auto,0.0001fr)"));
47 document
.body
.appendChild(h3
);
48 for (var i
= 0; i
< rowtest
.length
; ++i
) {
49 var grid
= document
.createElement('div');
50 grid
.setAttribute("class","grid row");
51 grid
.setAttribute("style","grid:" + results
[i
]);
52 var img
= document
.createElement('img');
53 img
.setAttribute("src","support/lime-2x24.png");
54 img
.setAttribute("style",rowtest
[i
] + "; max-height:auto; height:"+ item_height
[i
]);
55 grid
.appendChild(img
);
56 document
.body
.appendChild(document
.createTextNode("2x24.png -- "+rowtest
[i
]+'\n'));
57 document
.body
.appendChild(document
.createElement('br'));
58 document
.body
.appendChild(grid
);
59 document
.body
.appendChild(document
.createElement('br'));