Bug 1298550 - Re-enable the now-passing part of grid-percent-grid-gap-001.html. r...
[gecko.git] / layout / reftests / css-grid / grid-min-content-min-sizing-transferred-size-002.html
blobfb51a13de55c537f998c91cbad5a31c24132e819
1 <!DOCTYPE HTML>
2 <!--
3 Any copyright is dedicated to the Public Domain.
4 https://creativecommons.org/publicdomain/zero/1.0/
5 -->
6 <html><head>
7 <meta charset="utf-8">
8 <title>CSS Grid Test: Testing track 'min-content' min-sizing function with 'min-width:auto' 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 <link rel="help" href="https://drafts.csswg.org/css-grid/#min-size-auto">
11 <link rel="match" href="grid-min-content-min-sizing-transferred-size-002-ref.html">
12 <style type="text/css">
13 html,body { color:black; background-color:white; font:12px monospace; padding:0; margin:0; }
15 .grid {
16 display: grid;
17 float: left;
18 border: 1px solid;
19 align-items: start;
20 justify-items: start;
21 margin-bottom: 1em;
24 .col { grid-template-columns:min-content; grid-auto-rows:10px; }
25 .col img { min-height:0; }
27 br { clear:both; }
29 </style>
30 </head>
31 <body>
34 <script>
35 var coltest = [
36 "height:30px; max-width:200%", "height:30px; width:200%", "height:30px; width:50%",
37 "width:50%", "max-width:50%", "height:30px", "height:200%; width:80px", "height:50%",
38 "height:50%; width:20px", "max-height:50%", "max-height:50%; max-width:6px",
39 "min-height:40%", "min-height:40%; max-width:30px"
42 var h3 = document.createElement('h3');
43 h3.appendChild(document.createTextNode("grid-template-columns:min-content"));
44 document.body.appendChild(h3);
45 for (var i = 0; i < coltest.length; ++i) {
46 var grid = document.createElement('div');
47 grid.setAttribute("class","grid col");
48 var img = document.createElement('img');
49 img.setAttribute("src","support/lime-24x2.png");
50 img.setAttribute("style",coltest[i]);
51 grid.appendChild(img);
52 document.body.appendChild(document.createTextNode("24x2.png -- "+coltest[i]+'\n'));
53 document.body.appendChild(document.createElement('br'));
54 document.body.appendChild(grid);
55 document.body.appendChild(document.createElement('br'));
57 </script>
59 </body>
60 </html>