| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../resources/rounded-rectangle.js"></script> | |
| 5 <script> | |
| 6 function createShapeElement() { | |
| 7 var stylesheet = document.getElementById("stylesheet"); | |
| 8 var dimensions = { width: 200, height: 300, | |
| 9 shapeX: 25, shapeY: 45, | |
| 10 shapeWidth: 100, shapeHeight: 200, | |
| 11 shapeRadiusX: 55, shapeRadiusY: 0 }; | |
| 12 generateShapeElement("shape-inside1", stylesheet.sheet, dimensions, 9); | |
| 13 dimensions.shapeRadiusX = 55; | |
| 14 dimensions.shapeRadiusY = 0; | |
| 15 generateShapeElement("shape-inside2", stylesheet.sheet, dimensions, 9); | |
| 16 } | |
| 17 </script> | |
| 18 <style id="stylesheet"> | |
| 19 body { margin: 0; } | |
| 20 </style> | |
| 21 </head> | |
| 22 <body onload="createShapeElement()"> | |
| 23 <div id="shape-inside1" style="display:inline-block"></div> | |
| 24 <div id="shape-inside2" style="display:inline-block"></div> | |
| 25 <div> | |
| 26 This test requires the Ahem font. It creates two rectangular shape-insides w
ith one of | |
| 27 corner radius X or corner radius Y equal to zero. The content should fill an
d slightly | |
| 28 overflow these two rectangular areas with alternating black and white boxes. | |
| 29 </div> | |
| 30 </body> | |
| 31 </html> | |
| OLD | NEW |