OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 | |
5 <!-- | |
6 Test test creates a rectilinear polygon with this shape: | |
7 XXXX | |
8 XXXX | |
9 XXXX | |
10 --> | |
11 | |
12 <style id="stylesheet"> | |
13 #shape-inside, #shape-outline { | |
14 position: absolute; | |
15 top: 0; | |
16 left: 0; | |
17 width: 400px; | |
18 height: 200px; | |
19 margin: 0; | |
20 } | |
21 | |
22 #shape-inside { | |
23 word-wrap: break-word; | |
24 font: 50px/1 Ahem, sans-serif; | |
25 color: green; | |
26 } | |
27 | |
28 #shape-outline { | |
29 fill: none; | |
30 stroke: blue; | |
31 } | |
32 | |
33 #informative-text { | |
34 position: absolute; | |
35 top: 150px; | |
36 } | |
37 </style> | |
38 </head> | |
39 | |
40 </head> | |
41 <body> | |
42 <div id="shape-inside"> XXXX<br/> XXXX<br/>X
XXX</div> | |
43 <svg id="shape-outline" xmlns="http://www.w3.org/2000/svg"> | |
44 <polygon points="200,0 400,0 400,50 300,50 300,100 200,100 200,150 0,150 0
,100 100,100 100,50 200,50"/> | |
45 </svg> | |
46 <p id="informative-text"> | |
47 This test requires the Ahem font. It creates a rectilinear polygonal shape
-inside and a | |
48 matching stroked SVG polygon. The content should just fill the shape with
solid green.</p> | |
49 </html> | |
50 | |
OLD | NEW |