| 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         generatePolygon(100, 100, 50, [0, 0, 25, 0, 25, 50, 50, 50, 50, 0, 100, 
    0, 100, 100, 0, 100], 'xxx', 'first'); |  | 
|   8         generatePolygon(100, 100, 50, [0, 0, 50, 0, 50, 50, 75, 50, 75, 0, 100, 
    0, 100, 100, 0, 100], 'xxx', 'last'); |  | 
|   9         generatePolygon(200, 100, 50, [0, 0, 50, 0, 50, 50, 75, 50, 75, 0, 100, 
    0, 100, 50, 150, 50, 150, 0, 200, 0, 200, 100, 0, 100], 'xxxxxx', 'middle'); |  | 
|  10         generatePolygon(100, 100, 50, [-50, 0, 0, 0, 0, 50, 50, 50, 50, 0, 100, 
    0, 100, 100, -50, 100], 'xxx', 'first-outside'); |  | 
|  11         generatePolygon(100, 100, 50, [0, 0, 50, 0, 50, 50, 100, 50, 100, 0, 150
    , 0, 150, 100, 0, 100], 'xxx', 'last-outside'); |  | 
|  12         generatePolygon(100, 100, 50, [-50, -50, 25, -50, 25, 50, 50, 50, 50, 0,
     100, 0, 100, 100, 0, 100], 'xxx', 'first-intersect'); |  | 
|  13         generatePolygon(100, 100, 50, [0, 0, 50, 0, 50, 50, 75, 50, 75, -50, 150
    , -50, 150, 100, 0, 100], 'xxx', '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 |