| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <style id='stylesheet'> | |
| 5 .shape-inside { | |
| 6 font: 50px/1 Ahem, sans-serif; | |
| 7 color: green; | |
| 8 float: left; | |
| 9 } | |
| 10 </style> | |
| 11 <script src='../resources/simple-rectangle.js'></script> | |
| 12 <script> | |
| 13 ids = [ | |
| 14 'shape-inside', | |
| 15 'shape-inside-rl', | |
| 16 'shape-inside-lr', | |
| 17 'shape-inside-tb-lr-tb', | |
| 18 'shape-inside-lr-rl-lr' | |
| 19 ]; | |
| 20 ids.forEach(function(id) { | |
| 21 createRectangleTestResult(id, 'stylesheet', { width: 300, height: 300 },
{ x: 100, y: 100, width: 100, height: 100 }, 'px', null); | |
| 22 }); | |
| 23 </script> | |
| 24 </head> | |
| 25 <body> | |
| 26 <p>This test ensures that shape-inside takes into account padding on nested chil
d blocks in different writing modes. You should see several green squares within
a blue outline. The test requires the Ahem font.</p> | |
| 27 <div id='shape-inside' class='shape-inside'>xxxx</div> | |
| 28 <div id='shape-inside-rl' class='shape-inside'>xxxx</div> | |
| 29 <div id='shape-inside-lr' class='shape-inside'>xxxx</div> | |
| 30 <div id='shape-inside-tb-lr-tb' class='shape-inside'>xxxx</div> | |
| 31 <div id='shape-inside-lr-rl-lr' class='shape-inside'>xxxx</div> | |
| 32 </body> | |
| 33 </html> | |
| OLD | NEW |