OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script src='../resources/multi-segment-polygon.js'></script> | |
4 <script> | |
5 window.onload = function() { | |
6 var polygon = [0,0,100,0,100,25,150,25,150,0,250,0,250,100,0,100]; | |
7 generatePolygon(250, 100, 50, polygon, "<span style='font-size:2em'>XX</
span>", 'shape1'); | |
8 generatePolygon(250, 100, 50, polygon, "<span style='font-size:2em'>X</s
pan>XX", 'shape2'); | |
9 generatePolygon(250, 100, 50, polygon, "XX<span style='font-size:2em'>X<
/span>", 'shape3'); | |
10 } | |
11 </script> | |
12 <style> | |
13 #shape1, #shape2, #shape3 { | |
14 margin: 10px 0; | |
15 vertical-align: bottom; | |
16 } | |
17 </style> | |
18 </head> | |
19 <body> | |
20 This test requires the Ahem font, and tests should all display on a 5x2 grid
of green | |
21 squares. These tests check the interaction of shape-inside with spans. | |
22 <div id='shape1'></div> | |
23 This test should display two 2x2 green squares, separated by a 1 unit space. | |
24 <div id='shape2'></div> | |
25 This test should display a 2x2 green square, and a 2x1 rectangle separated b
y a 1 unit space. | |
26 <div id='shape3'></div> | |
27 This test should display a 2x1 green rectangle, and a 2x2 square separated b
y a 1 unit space. | |
28 </body> | |
29 </html> | |
OLD | NEW |