OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <script src="../../resources/check-layout.js"></script> |
| 4 <link href="resources/grid.css" rel="stylesheet"> |
| 5 <style> |
| 6 .grid { |
| 7 grid-definition-rows: 100px 100px; |
| 8 grid-definition-columns: 100px 100px; |
| 9 width: 200px; |
| 10 } |
| 11 |
| 12 .gridItem { |
| 13 margin: 20px 30px 40px 50px; |
| 14 width: 20px; |
| 15 height: 40px; |
| 16 } |
| 17 </style> |
| 18 </head> |
| 19 <body onload="checkLayout('.grid')"> |
| 20 |
| 21 <div>This test checks that the grid items are shifted by theirs before and start
margins inside their grid area.</div> |
| 22 |
| 23 <div style="position: relative"> |
| 24 <div class="grid" data-expected-width="200" data-expected-height="200"> |
| 25 <div class="gridItem firstRowFirstColumn" data-offset-x="50" data-offset
-y="20" data-expected-width="20" data-expected-height="40"></div> |
| 26 <div class="gridItem firstRowSecondColumn" data-offset-x="150" data-offs
et-y="20" data-expected-width="20" data-expected-height="40"></div> |
| 27 <div class="gridItem secondRowFirstColumn" data-offset-x="50" data-offse
t-y="120" data-expected-width="20" data-expected-height="40"></div> |
| 28 <div class="gridItem secondRowSecondColumn" data-offset-x="150" data-off
set-y="120" data-expected-width="20" data-expected-height="40"></div> |
| 29 </div> |
| 30 </div> |
| 31 |
| 32 <div style="position: relative"> |
| 33 <div class="grid verticalRL" data-expected-width="200" data-expected-height=
"200"> |
| 34 <div class="gridItem firstRowFirstColumn" data-offset-x="150" data-offse
t-y="20" data-expected-width="20" data-expected-height="40"></div> |
| 35 <div class="gridItem firstRowSecondColumn" data-offset-x="150" data-offs
et-y="120" data-expected-width="20" data-expected-height="40"></div> |
| 36 <div class="gridItem secondRowFirstColumn" data-offset-x="50" data-offse
t-y="20" data-expected-width="20" data-expected-height="40"></div> |
| 37 <div class="gridItem secondRowSecondColumn" data-offset-x="50" data-offs
et-y="120" data-expected-width="20" data-expected-height="40"></div> |
| 38 </div> |
| 39 </div> |
| 40 |
| 41 <div style="position: relative"> |
| 42 <div class="grid verticalLR" data-expected-width="200" data-expected-height=
"200"> |
| 43 <div class="gridItem firstRowFirstColumn" data-offset-x="50" data-offset
-y="20" data-expected-width="20" data-expected-height="40"></div> |
| 44 <div class="gridItem firstRowSecondColumn" data-offset-x="50" data-offse
t-y="120" data-expected-width="20" data-expected-height="40"></div> |
| 45 <div class="gridItem secondRowFirstColumn" data-offset-x="150" data-offs
et-y="20" data-expected-width="20" data-expected-height="40"></div> |
| 46 <div class="gridItem secondRowSecondColumn" data-offset-x="150" data-off
set-y="120" data-expected-width="20" data-expected-height="40"></div> |
| 47 </div> |
| 48 </div> |
| 49 |
| 50 <div style="position: relative"> |
| 51 <div class="grid horizontalBT" data-expected-width="200" data-expected-heigh
t="200"> |
| 52 <div class="gridItem firstRowFirstColumn" data-offset-x="50" data-offset
-y="120" data-expected-width="20" data-expected-height="40"></div> |
| 53 <div class="gridItem firstRowSecondColumn" data-offset-x="150" data-offs
et-y="120" data-expected-width="20" data-expected-height="40"></div> |
| 54 <div class="gridItem secondRowFirstColumn" data-offset-x="50" data-offse
t-y="20" data-expected-width="20" data-expected-height="40"></div> |
| 55 <div class="gridItem secondRowSecondColumn" data-offset-x="150" data-off
set-y="20" data-expected-width="20" data-expected-height="40"></div> |
| 56 </div> |
| 57 </div> |
| 58 |
| 59 <!-- rtl direction --> |
| 60 <div style="position: relative"> |
| 61 <div class="grid directionRTL" data-expected-width="200" data-expected-heigh
t="200"> |
| 62 <div class="gridItem firstRowFirstColumn" data-offset-x="30" data-offset
-y="20" data-expected-width="20" data-expected-height="40"></div> |
| 63 <div class="gridItem firstRowSecondColumn" data-offset-x="130" data-offs
et-y="20" data-expected-width="20" data-expected-height="40"></div> |
| 64 <div class="gridItem secondRowFirstColumn" data-offset-x="30" data-offse
t-y="120" data-expected-width="20" data-expected-height="40"></div> |
| 65 <div class="gridItem secondRowSecondColumn" data-offset-x="130" data-off
set-y="120" data-expected-width="20" data-expected-height="40"></div> |
| 66 </div> |
| 67 </div> |
| 68 |
| 69 <div style="position: relative"> |
| 70 <div class="grid verticalRL directionRTL" data-expected-width="200" data-exp
ected-height="200"> |
| 71 <div class="gridItem firstRowFirstColumn" data-offset-x="150" data-offse
t-y="40" data-expected-width="20" data-expected-height="40"></div> |
| 72 <div class="gridItem firstRowSecondColumn" data-offset-x="150" data-offs
et-y="140" data-expected-width="20" data-expected-height="40"></div> |
| 73 <div class="gridItem secondRowFirstColumn" data-offset-x="50" data-offse
t-y="40" data-expected-width="20" data-expected-height="40"></div> |
| 74 <div class="gridItem secondRowSecondColumn" data-offset-x="50" data-offs
et-y="140" data-expected-width="20" data-expected-height="40"></div> |
| 75 </div> |
| 76 </div> |
| 77 |
| 78 <div style="position: relative"> |
| 79 <div class="grid verticalLR directionRTL" data-expected-width="200" data-exp
ected-height="200"> |
| 80 <div class="gridItem firstRowFirstColumn" data-offset-x="50" data-offset
-y="40" data-expected-width="20" data-expected-height="40"></div> |
| 81 <div class="gridItem firstRowSecondColumn" data-offset-x="50" data-offse
t-y="140" data-expected-width="20" data-expected-height="40"></div> |
| 82 <div class="gridItem secondRowFirstColumn" data-offset-x="150" data-offs
et-y="40" data-expected-width="20" data-expected-height="40"></div> |
| 83 <div class="gridItem secondRowSecondColumn" data-offset-x="150" data-off
set-y="140" data-expected-width="20" data-expected-height="40"></div> |
| 84 </div> |
| 85 </div> |
| 86 |
| 87 <div style="position: relative"> |
| 88 <div class="grid horizontalBT directionRTL" data-expected-width="200" data-e
xpected-height="200"> |
| 89 <div class="gridItem firstRowFirstColumn" data-offset-x="30" data-offset
-y="120" data-expected-width="20" data-expected-height="40"></div> |
| 90 <div class="gridItem firstRowSecondColumn" data-offset-x="130" data-offs
et-y="120" data-expected-width="20" data-expected-height="40"></div> |
| 91 <div class="gridItem secondRowFirstColumn" data-offset-x="30" data-offse
t-y="20" data-expected-width="20" data-expected-height="40"></div> |
| 92 <div class="gridItem secondRowSecondColumn" data-offset-x="130" data-off
set-y="20" data-expected-width="20" data-expected-height="40"></div> |
| 93 </div> |
| 94 </div> |
| 95 |
| 96 </body> |
| 97 </html> |
OLD | NEW |