| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>CSS Grid Layout Test: grid lines</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/#common-uses-named-li
nes"> |
| 7 <link rel="match" href="../reference/grid-layout-basic-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 width: 150px; |
| 20 background: #eee; |
| 21 display: grid; |
| 22 grid-template-columns: [left] 100px [center] 50px [right]; |
| 23 } |
| 24 .a { |
| 25 background: blue; |
| 26 grid-column-start: left; |
| 27 grid-column-end: center; |
| 28 } |
| 29 .b { |
| 30 background: yellow; |
| 31 grid-column-start: center; |
| 32 grid-column-end: right; |
| 33 } |
| 34 </style> |
| 35 </head> |
| 36 <body> |
| 37 <p id="caseTitle">The test passes if it has the same visual effect as refere
nce.</p> |
| 38 <div id="grid"> |
| 39 <div class="a"> </div> |
| 40 <div class="b"> </div> |
| 41 </div> |
| 42 </body> |
| 43 </html> |
| OLD | NEW |