| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../resources/simple-polygon.js"></script> | |
| 5 <script> | |
| 6 if (window.internals) | |
| 7 window.internals.settings.setCSSExclusionsEnabled(true); | |
| 8 | |
| 9 // Rectilinear polygon with this shape (same as shape-inside-rectilinear-pol
ygon-002.html). | |
| 10 // The vertices are specified in counter-clockwise order. | |
| 11 // XXX | |
| 12 // XXXXXXX | |
| 13 // XXXXXXX | |
| 14 // XXX | |
| 15 | |
| 16 var vertices = [{x:0, y:150}, {x:100, y:150}, {x:100, y:200}, {x:250, y:200}
, {x:250, y:150}, {x:350, y:150}, {x:350, y:50}, {x:250, y:50}, {x:250, y:0}, {x
:100, y:0}, {x:100, y:50}, {x:0, y:50}]; | |
| 17 var lineHeight = 50; | |
| 18 </script> | |
| 19 | |
| 20 <style id="stylesheet"> | |
| 21 #polygon-shape-inside, #polygon-svg-shape { | |
| 22 position: absolute; | |
| 23 left: 0px; | |
| 24 top: 0px; | |
| 25 } | |
| 26 </style> | |
| 27 </head> | |
| 28 | |
| 29 <body id="body" onload="createPolygonShapeInsideTestCase(vertices)"> | |
| 30 <svg id="polygon-svg-shape" xmlns="http://www.w3.org/2000/svg"></svg> | |
| 31 <div id="polygon-shape-inside"></div> | |
| 32 <p id="informative-text"> | |
| 33 This test requires the Ahem font. It creates a polygonal shape-inside an
d a matching | |
| 34 filled SVG polygon. The content should just fill the shape, with alterna
ting black and | |
| 35 empty rectangles on each line.</p> | |
| 36 </body> | |
| 37 | |
| 38 </html> | |
| OLD | NEW |