OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src='../resources/multi-segment-polygon.js'></script> | |
5 <script> | |
6 window.onload = function() { | |
7 simulateWithText(100, 100, 50, [' x', 'xx'], 'first'); | |
8 simulateWithText(100, 100, 50, ['x', 'xx'], 'last'); | |
9 simulateWithText(200, 100, 50, ['x x', 'xxxx'], 'middle'); | |
10 simulateWithText(100, 100, 50, [' x', 'xx'], 'first-outside'); | |
11 simulateWithText(100, 100, 50, ['x', 'xx'], 'last-outside'); | |
12 simulateWithText(100, 100, 50, [' x', 'xx'], 'first-intersect'); | |
13 simulateWithText(100, 100, 50, ['x', 'xx'], 'last-intersect'); | |
14 } | |
15 </script> | |
16 </head> | |
17 <body> | |
18 <p>These tests cover multisegment polygons where some segments should not ha
ve content, either because they are too small, or because they are outside the c
ontent box. It requires the Ahem font.</p> | |
19 <p>An empty initial segment on the first line [2x2 grid]</p> | |
20 <div id='first'></div> | |
21 <p>An empty final segment on the first line [2x2 grid]</p> | |
22 <div id='last'></div> | |
23 <p>An empty middle segment on the first line [4x2] grid</p> | |
24 <div id='middle'></div> | |
25 <p>The initial segment is outside the content box [2x2] grid</p> | |
26 <div id='first-outside'></div> | |
27 <p>The final segment is outside the content box [2x2] grid</p> | |
28 <div id='last-outside'></div> | |
29 <p>The first segment intersects the content box, and is too small [2x2] grid
</p> | |
30 <div id='first-intersect'></div> | |
31 <p>The last segment intersects the content box, and is too small [2x2] grid<
/p> | |
32 <div id='last-intersect'></div> | |
33 </body> | |
34 </html> | |
OLD | NEW |