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: 400, height: 600, | |
10 shapeX: 45, shapeY: 25, | |
11 shapeWidth: 300, shapeHeight: 500, | |
12 shapeRadiusX: 75, shapeRadiusY: 55 }; | |
13 generateSimulatedShapeElement("shape-inside", stylesheet.sheet, dimensio
ns, 22); | |
14 } | |
15 </script> | |
16 <style id="stylesheet"> | |
17 body { margin: 0; } | |
18 </style> | |
19 </head> | |
20 <body onload="createSimulatedShapeElement()"> | |
21 <div id="shape-inside"></div> | |
22 <div> | |
23 This test requires the Ahem font. It creates a rounded rectangle shape-insid
e and fills it | |
24 with alternating black and white squares as inline content. The entire shape
-inside should | |
25 be filled, with a small amount of overflow. | |
26 </div> | |
27 </body> | |
28 </html> | |
OLD | NEW |