| 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: 'order' property affects grid items auto-pl
acement position</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/#order-property"
title="4.2 Reordered Grid Items: the order property" /> |
| 7 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#order-pro
perty" title="5.4. Display Order: the order property" /> |
| 8 <link rel="match" href="../reference/grid-2x2-blue-yellow-lime-magenta.x
ht" /> |
| 9 <meta name="flags" content="ahem" /> |
| 10 <style type="text/css"><![CDATA[ |
| 11 #reference-overlapped-red { |
| 12 position: absolute; |
| 13 background-color: red; |
| 14 width: 100px; |
| 15 height: 100px; |
| 16 z-index: -1; |
| 17 } |
| 18 |
| 19 #grid { |
| 20 display: grid; |
| 21 font: 50px/1 Ahem; |
| 22 grid-template-columns: auto auto; |
| 23 justify-content: start; |
| 24 align-content: start; |
| 25 } |
| 26 |
| 27 #blue { |
| 28 color: blue; |
| 29 order: 1; |
| 30 } |
| 31 |
| 32 #yellow { |
| 33 color: yellow; |
| 34 order: 1; |
| 35 } |
| 36 |
| 37 #lime { |
| 38 color: lime; |
| 39 order: 5; |
| 40 } |
| 41 |
| 42 #magenta { |
| 43 color: magenta; |
| 44 order: 5; |
| 45 } |
| 46 ]]></style> |
| 47 </head> |
| 48 <body> |
| 49 <p>Test passes if there are four filled squares with the same size and <
strong>no red</strong>.</p> |
| 50 <p>Blue and yellow squares in the first line; lime and magenta squares i
n the second line (exactly in this order).</p> |
| 51 |
| 52 <div id="reference-overlapped-red"></div> |
| 53 <div id="grid"> |
| 54 <div id="blue">B</div> |
| 55 <div id="lime">L</div> |
| 56 <div id="magenta">M</div> |
| 57 <div id="yellow">Y</div> |
| 58 </div> |
| 59 </body> |
| 60 </html> |
| OLD | NEW |