OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <link href="resources/grid.css" rel="stylesheet"> |
| 4 <style> |
| 5 |
| 6 .grid { |
| 7 display: block; |
| 8 margin: 1px; |
| 9 width: 50px; |
| 10 height: 25px; |
| 11 padding: 5px 10px 15px 20px; |
| 12 } |
| 13 |
| 14 .green { |
| 15 background-color: green; |
| 16 } |
| 17 |
| 18 </style> |
| 19 <body> |
| 20 |
| 21 <p>This test checks the behavior of the positioned grid children in combination
with the writing modes and text direction properties.</p> |
| 22 <p>For the test to pass you should see no red and all the green boxes should hav
e the very the same position and size within each grey box. The black box will b
e positioned depending on the writing mode and text direction values.</p> |
| 23 |
| 24 <div class="grid"> |
| 25 <div class="sizedToGridArea green">XX</div> |
| 26 </div> |
| 27 |
| 28 <div class="grid verticalRL"> |
| 29 <div class="sizedToGridArea green">XX</div> |
| 30 </div> |
| 31 |
| 32 <div class="grid verticalLR"> |
| 33 <div class="sizedToGridArea green">XX</div> |
| 34 </div> |
| 35 |
| 36 <div class="grid horizontalBT"> |
| 37 <div class="sizedToGridArea green">XX</div> |
| 38 </div> |
| 39 |
| 40 <div class="grid directionRTL"> |
| 41 <div class="sizedToGridArea green">XX</div> |
| 42 </div> |
| 43 |
| 44 <div class="grid verticalRL directionRTL"> |
| 45 <div class="sizedToGridArea green">XX</div> |
| 46 </div> |
| 47 |
| 48 <div class="grid verticalLR directionRTL"> |
| 49 <div class="sizedToGridArea green">XX</div> |
| 50 </div> |
| 51 |
| 52 <div class="grid horizontalBT directionRTL"> |
| 53 <div class="sizedToGridArea green">XX</div> |
| 54 </div> |
| 55 |
| 56 </body> |
| 57 </html> |
OLD | NEW |