| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>CSS Grid Layout Test: auto tracks</title> |
| 5 <link rel="author" title="Leo Deng" href="mailto:myst.dg@gmail.com"> |
| 6 <link rel="help" href="http://www.w3.org/TR/css-grid-1/#track-sizing"> |
| 7 <link rel="match" href="../reference/grid-layout-auto-tracks-ref.html"> |
| 8 <meta name="assert" content="the layout should behave the same as reference.
"> |
| 9 <style> |
| 10 body { |
| 11 margin: 0; |
| 12 padding: 0; |
| 13 } |
| 14 #caseTitle { |
| 15 margin: 10px; |
| 16 height: 40px; |
| 17 } |
| 18 #grid { |
| 19 height: auto; |
| 20 width: 100px; |
| 21 background: #eee; |
| 22 display: grid; |
| 23 grid-template-columns: 100px; |
| 24 grid-template-rows: auto; |
| 25 } |
| 26 .a { |
| 27 background: blue; |
| 28 grid-column: 1; |
| 29 grid-row: 1; |
| 30 } |
| 31 .b { |
| 32 background: yellow; |
| 33 grid-column: 2; |
| 34 grid-row: 1; |
| 35 } |
| 36 .c { |
| 37 background: pink; |
| 38 grid-column: 1; |
| 39 grid-row: 2; |
| 40 } |
| 41 </style> |
| 42 </head> |
| 43 <body> |
| 44 <p id="caseTitle">The test passes if it has the same visual effect as refere
nce.</p> |
| 45 <div id="grid"> |
| 46 <div class="a"> </div> |
| 47 <div class="b"><div style="width:50px"> </div></div> |
| 48 <div class="c"> </div> |
| 49 </div> |
| 50 </body> |
| 51 </html> |
| OLD | NEW |