| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../resources/simple-rectangle.js"></script> | |
| 5 <style id="stylesheet"> | |
| 6 .container { | |
| 7 font: 10px/1 Ahem, sans-serif; | |
| 8 } | |
| 9 .spacer { | |
| 10 width: 50px; | |
| 11 height: 50px; | |
| 12 background-color: green; | |
| 13 } | |
| 14 .vertical-lr { | |
| 15 -webkit-writing-mode: vertical-lr; | |
| 16 } | |
| 17 .vertical-rl { | |
| 18 -webkit-writing-mode: vertical-rl; | |
| 19 } | |
| 20 </style> | |
| 21 <script> | |
| 22 window.onload = function () { | |
| 23 var content = 'XXXXXXXXXXXXXXX\nXXXXXXXXXXXXXXX\nXXXXXXXXXXXXXXX\n<div c
lass="spacer" style="float:right"></div>\n<div class="spacer" style="float:left"
></div>\nXXXXX\nXXXXX\nXXXXX\nXXXXX\nXXXXX\nXXXXXXXXXXXXXXX\nXXXXXXXXXXXXXXX\nXX
XXXXXXXXXXXXX\nXXXXXXXXXXXXXXX\nXXXXXXXXXXXXXXX\nXXXXXXXXXXXXXXX\nXXXXXXXXXXXXXX
X'; | |
| 24 createRectangleTestResult('base', 'stylesheet', { height: 200, width: 20
0 }, { x: 25, y: 0, width: 150, height: 150 }, 'px', content); | |
| 25 createRectangleTestResult('rl', 'stylesheet', { height: 200, width: 200
}, { x: 0, y: 25, width: 150, height: 150 }, 'px', content); | |
| 26 createRectangleTestResult('lr', 'stylesheet', { height: 200, width: 200
}, { x: 0, y: 25, width: 150, height: 150 }, 'px', content); | |
| 27 }; | |
| 28 </script> | |
| 29 </head> | |
| 30 <body> | |
| 31 <h1>The following tests should all be large black squares that contain two s
maller green squares on the same line.</h1> | |
| 32 <h2>Standard left right writing mode</h2> | |
| 33 <div id="base" class="container"> | |
| 34 </div> | |
| 35 <h2>Vertical Right Left writing mode</h2> | |
| 36 <div id="rl" class="container vertical-rl"></div> | |
| 37 <h2>Vertical Left Right writing mode</h2> | |
| 38 <div id="lr" class="container vertical-lr"></div> | |
| 39 </body> | |
| 40 </html> | |
| OLD | NEW |