OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src="../resources/subpixel-utils.js"></script> | |
5 <script src="../resources/simple-polygon.js"></script> | |
6 <script> | |
7 // Concave assymetric simple polygon with horizontal top and bottom edges.
Roughly an hourglass shape. | |
8 var vertices = [{x:40, y:40}, {x:440, y:40}, {x:320, y:160}, {x:480, y:320},
{x:80, y:320}, {x:200, y:200}]; | |
9 var lineHeight = 40; | |
10 | |
11 function init() { | |
12 createPolygonShapeInsideTestCaseExpected(); | |
13 } | |
14 </script> | |
15 | |
16 <style id="stylesheet"> | |
17 #polygon-shape-inside, #polygon-svg-shape { | |
18 position: absolute; | |
19 left: 0px; | |
20 top: 0px; | |
21 } | |
22 </style> | |
23 </head> | |
24 | |
25 <body onload="init()"> | |
26 <svg id="polygon-svg-shape" xmlns="http://www.w3.org/2000/svg"></svg> | |
27 <div id="polygon-shape-inside"></div> | |
28 <p id="informative-text"> | |
29 This test requires the Ahem font. It creates a polygonal shape-inside and
a matching | |
30 filled SVG polygon. The content should just fill the shape with alternatin
g black and | |
31 empty rectangles on each line.</p> | |
32 </body> | |
33 | |
34 </html> | |
OLD | NEW |