OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <link href="resources/grid.css" rel="stylesheet"> |
| 3 <link href="resources/grid-alignment.css" rel="stylesheet"> |
| 4 <script src="../../resources/check-layout.js"></script> |
| 5 <style> |
| 6 body { |
| 7 margin: 0; |
| 8 } |
| 9 |
| 10 .container { |
| 11 position: relative; |
| 12 } |
| 13 |
| 14 .grid { |
| 15 font: 10px/1 Ahem; |
| 16 width: 300px; |
| 17 height: 160px; |
| 18 } |
| 19 </style> |
| 20 <body onload="checkLayout('.grid')"> |
| 21 |
| 22 <p>This test checks that grid items positioning works as expected with orthogona
l flows.</p> |
| 23 |
| 24 <p>HORIZONTAL-TB container with VERTICAL-LR items.</p> |
| 25 <div class="container"> |
| 26 <div class="grid itemsStart contentStart fixedWidth" data-expected-width="30
0" data-expected-height="160"> |
| 27 <div class="firstRowFirstColumn verticalLR" data-offset-x="0" data-of
fset-y="0" data-expected-width="20" data-expected-height="80">X X X X X X</div> |
| 28 <div class="firstRowSecondColumn verticalLR" data-offset-x="20" data-of
fset-y="0" data-expected-width="20" data-expected-height="80">X X X X X X</div> |
| 29 <div class="secondRowFirstColumn verticalLR" data-offset-x="0" data-of
fset-y="80" data-expected-width="20" data-expected-height="80">X X X X X X</div> |
| 30 <div class="secondRowSecondColumn verticalLR" data-offset-x="20" data-of
fset-y="80" data-expected-width="20" data-expected-height="80">X X X X X X</div> |
| 31 </div> |
| 32 </div> |
| 33 |
| 34 <p>HORIZONTAL-TB container with VERTICAL-RL items.</p> |
| 35 <div class="container"> |
| 36 <div class="grid itemsStart contentStart" data-expected-width="300" data-exp
ected-height="160"> |
| 37 <div class="firstRowFirstColumn verticalRL" data-offset-x="0" data-of
fset-y="0" data-expected-width="20" data-expected-height="80">X X X X X X</div> |
| 38 <div class="firstRowSecondColumn verticalRL" data-offset-x="20" data-of
fset-y="0" data-expected-width="20" data-expected-height="80">X X X X X X</div> |
| 39 <div class="secondRowFirstColumn verticalRL" data-offset-x="0" data-of
fset-y="80" data-expected-width="20" data-expected-height="80">X X X X X X</div> |
| 40 <div class="secondRowSecondColumn verticalRL" data-offset-x="20" data-of
fset-y="80" data-expected-width="20" data-expected-height="80">X X X X X X</div> |
| 41 </div> |
| 42 </div> |
| 43 |
| 44 <p>VERTICAL-LR container with HORIZONTAL-TB items.</p> |
| 45 <div class="container"> |
| 46 <div class="grid itemsStart contentStart fixedHeight verticalLR" data-expect
ed-width="300" data-expected-height="160"> |
| 47 <div class="firstRowFirstColumn horizontalTB" data-offset-x="0" data
-offset-y="0" data-expected-width="110" data-expected-height="10">X X X X X X</
div> |
| 48 <div class="firstRowSecondColumn horizontalTB" data-offset-x="0" data-o
ffset-y="10" data-expected-width="110" data-expected-height="10">X X X X X X</di
v> |
| 49 <div class="secondRowFirstColumn horizontalTB" data-offset-x="110" da
ta-offset-y="0" data-expected-width="110" data-expected-height="10">X X X X X X
</div> |
| 50 <div class="secondRowSecondColumn horizontalTB" data-offset-x="110" data
-offset-y="10" data-expected-width="110" data-expected-height="10">X X X X X X</
div> |
| 51 </div> |
| 52 </div> |
| 53 |
| 54 <p>VERTICAL-RL container with HORIZONTAL-TB items.</p> |
| 55 <div class="container"> |
| 56 <div class="grid itemsStart contentStart fixedHeight verticalRL" data-expect
ed-width="300" data-expected-height="160"> |
| 57 <div class="firstRowFirstColumn horizontalTB" data-offset-x="190" data
-offset-y="0" data-expected-width="110" data-expected-height="10">X X X X X X</
div> |
| 58 <div class="firstRowSecondColumn horizontalTB" data-offset-x="190" da
ta-offset-y="10" data-expected-width="110" data-expected-height="10">X X X X X X
</div> |
| 59 <div class="secondRowFirstColumn horizontalTB" data-offset-x="80" data-
offset-y="0" data-expected-width="110" data-expected-height="10">X X X X X X</d
iv> |
| 60 <div class="secondRowSecondColumn horizontalTB" data-offset-x="80" dat
a-offset-y="10" data-expected-width="110" data-expected-height="10">X X X X X X<
/div> |
| 61 </div> |
| 62 </div> |
| 63 </body> |
OLD | NEW |