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