| 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 z-axis orde
r of grid items within an inline grid</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="../../css21/reference/ref-filled-green-100px-squ
are.xht" /> |
| 8 <meta name="flags" content="ahem" /> |
| 9 <style type="text/css"><![CDATA[ |
| 10 #inline-grid { |
| 11 display: inline-grid; |
| 12 font: 100px/1 Ahem; |
| 13 } |
| 14 |
| 15 #test-item-overlapping-green { |
| 16 color: green; |
| 17 z-index: 1; |
| 18 } |
| 19 |
| 20 #reference-item-overlapped-red { |
| 21 color: red; |
| 22 z-index: -1; |
| 23 } |
| 24 |
| 25 .first-row-first-column { |
| 26 grid-area: 1 / 1; |
| 27 } |
| 28 ]]></style> |
| 29 </head> |
| 30 <body> |
| 31 <p>Test passes if there is a filled green square and <strong>no red</str
ong>.</p> |
| 32 |
| 33 <div id="inline-grid"> |
| 34 <div id="test-item-overlapping-green" class="first-row-first-column"
>G</div> |
| 35 <div id="reference-item-overlapped-red" class="first-row-first-colum
n">R</div> |
| 36 </div> |
| 37 </body> |
| 38 </html> |
| OLD | NEW |