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.
Similar to test 001 | |
8 // with a vertical left edge. | |
9 var vertices = [{x:40, y:40}, {x:440, y:40}, {x:320, y:160}, {x:480, y:320},
{x:40, y:320}]; | |
10 var lineHeight = 40; | |
11 | |
12 function init() { | |
13 createPolygonShapeInsideTestCaseExpected(); | |
14 } | |
15 </script> | |
16 | |
17 <style id="stylesheet"> | |
18 #polygon-shape-inside, #polygon-svg-shape { | |
19 position: absolute; | |
20 left: 0px; | |
21 top: 0px; | |
22 } | |
23 </style> | |
24 </head> | |
25 | |
26 <body onload="init()"> | |
27 <svg id="polygon-svg-shape" xmlns="http://www.w3.org/2000/svg"></svg> | |
28 <div id="polygon-shape-inside"></div> | |
29 <p id="informative-text"> | |
30 This test requires the Ahem font. It creates a polygonal shape-inside an
d a matching | |
31 filled SVG polygon. The content should just fill the shape with alternat
ing black and | |
32 empty rectangles on each line.</p> | |
33 </body> | |
34 | |
35 </html> | |
OLD | NEW |