| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <link href="resources/grid.css" rel="stylesheet"> | 4 <link href="resources/grid.css" rel="stylesheet"> |
| 5 <link href="resources/grid-alignment.css" rel="stylesheet"> |
| 5 <script src="../../resources/check-layout.js"></script> | 6 <script src="../../resources/check-layout.js"></script> |
| 6 <style> | 7 <style> |
| 7 body { | 8 body { |
| 8 margin: 0; | 9 margin: 0; |
| 9 } | 10 } |
| 10 | 11 |
| 11 .grid { | 12 .grid { |
| 12 grid: 50px 50px / 100px 100px; | 13 grid: 50px 50px / 100px 100px; |
| 13 position: relative; | 14 position: relative; |
| 14 width: 300px; | 15 width: 300px; |
| 15 height: 200px; | 16 height: 200px; |
| 16 } | 17 } |
| 17 | 18 |
| 18 .cell { | 19 .cell { |
| 19 width: 20px; | 20 width: 20px; |
| 20 height: 40px; | 21 height: 40px; |
| 21 } | 22 } |
| 22 | |
| 23 .justifyContentStart { | |
| 24 justify-content: start; | |
| 25 } | |
| 26 | |
| 27 .justifyContentEnd { | |
| 28 justify-content: end; | |
| 29 } | |
| 30 | |
| 31 .justifyContentCenter { | |
| 32 justify-content: center; | |
| 33 } | |
| 34 | |
| 35 .justifyContentLeft { | |
| 36 justify-content: left; | |
| 37 } | |
| 38 | |
| 39 .justifyContentRight { | |
| 40 justify-content: right; | |
| 41 } | |
| 42 | |
| 43 .justifyContentFlexStart { | |
| 44 justify-content: flex-start; | |
| 45 } | |
| 46 | |
| 47 .justifyContentFlexEnd { | |
| 48 justify-content: flex-end; | |
| 49 } | |
| 50 </style> | 23 </style> |
| 51 </head> | 24 </head> |
| 52 <body onload="checkLayout('.grid')"> | 25 <body onload="checkLayout('.grid')"> |
| 53 | 26 |
| 54 <p>This test checks that the align-content property is applied correctly in vert
ical-RL grids.</p> | 27 <p>This test checks that the align-content property is applied correctly in vert
ical-RL grids.</p> |
| 55 | 28 |
| 56 <div style="position: relative"> | 29 <div style="position: relative"> |
| 57 <p>direction: LTR | justify-content: 'center'</p> | 30 <p>direction: LTR | justify-content: 'center'</p> |
| 58 <div class="grid verticalRL justifyContentCenter" data-expected-width="300"
data-expected-height="200"> | 31 <div class="grid verticalRL justifyContentCenter" data-expected-width="300"
data-expected-height="200"> |
| 59 <div class="cell firstRowFirstColumn" data-offset-x="280" data-offset-y=
"50" data-expected-width="20" data-expected-height="40"></div> | 32 <div class="cell firstRowFirstColumn" data-offset-x="280" data-offset-y=
"50" data-expected-width="20" data-expected-height="40"></div> |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 <div class="grid verticalRL directionRTL justifyContentEnd" data-expected-wi
dth="300" data-expected-height="200"> | 122 <div class="grid verticalRL directionRTL justifyContentEnd" data-expected-wi
dth="300" data-expected-height="200"> |
| 150 <div class="cell firstRowFirstColumn" data-offset-x="280" data-offset-y=
"60" data-expected-width="20" data-expected-height="40"></div> | 123 <div class="cell firstRowFirstColumn" data-offset-x="280" data-offset-y=
"60" data-expected-width="20" data-expected-height="40"></div> |
| 151 <div class="firstRowSecondColumn" data-offset-x="200" data-offset-y="0"
data-expected-width="100" data-expected-height="50"></div> | 124 <div class="firstRowSecondColumn" data-offset-x="200" data-offset-y="0"
data-expected-width="100" data-expected-height="50"></div> |
| 152 <div class="secondRowFirstColumn" data-offset-x="100" data-offset-y="50"
data-expected-width="100" data-expected-height="50"></div> | 125 <div class="secondRowFirstColumn" data-offset-x="100" data-offset-y="50"
data-expected-width="100" data-expected-height="50"></div> |
| 153 <div class="cell secondRowSecondColumn" data-offset-x="180" data-offset-
y="10" data-expected-width="20" data-expected-height="40"></div> | 126 <div class="cell secondRowSecondColumn" data-offset-x="180" data-offset-
y="10" data-expected-width="20" data-expected-height="40"></div> |
| 154 </div> | 127 </div> |
| 155 </div> | 128 </div> |
| 156 | 129 |
| 157 </body> | 130 </body> |
| 158 </html> | 131 </html> |
| OLD | NEW |