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