| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 <head> |
| 4 <title>CSS Grid Layout Test: 'z-index' property controls the grid items
stacking order</title> |
| 5 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igal
ia.com" /> |
| 6 <link rel="help" href="http://www.w3.org/TR/css-grid-1/#z-order" title="
4.4. Z-axis Ordering: the z-index property" /> |
| 7 <link rel="match" href="../reference/grid-filled-blue-yellow-green-overl
apped-100px-squares.xht" /> |
| 8 <meta name="flags" content="ahem" /> |
| 9 <style type="text/css"><![CDATA[ |
| 10 #grid { |
| 11 display: grid; |
| 12 font: 100px/1 Ahem; |
| 13 grid-template-columns: 25px 25px 25px 25px; |
| 14 grid-template-rows: 25px 25px 25px 25px; |
| 15 } |
| 16 |
| 17 #blue { |
| 18 color: blue; |
| 19 z-index: -1; |
| 20 grid-column: 2; |
| 21 grid-row: 2; |
| 22 margin-top: -25px; |
| 23 margin-left: -25px; |
| 24 } |
| 25 |
| 26 #yellow { |
| 27 color: yellow; |
| 28 grid-column: 4; |
| 29 grid-row: 4; |
| 30 margin-top: -50px; |
| 31 margin-left: -50px; |
| 32 } |
| 33 |
| 34 #green { |
| 35 color: green; |
| 36 z-index: 1; |
| 37 grid-column: 1; |
| 38 grid-row: 1; |
| 39 margin-top: 50px; |
| 40 margin-left: 50px; |
| 41 } |
| 42 ]]></style> |
| 43 </head> |
| 44 <body> |
| 45 <p>Test passes if there are 3 filled squares with the same size, and <st
rong>green</strong> is overlapping <strong>yellow</strong> which is overlapping
<strong>blue</strong>.</p> |
| 46 |
| 47 <div id="grid"> |
| 48 <div id="green">G</div> |
| 49 <div id="yellow">Y</div> |
| 50 <div id="blue">B</div> |
| 51 </div> |
| 52 </body> |
| 53 </html> |
| OLD | NEW |