shape-outside-polygon-016.html (2068B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test: polygon, evenodd</title> 5 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"> 6 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#funcdef-polygon"> 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"> 8 <link rel="match" href="reference/shape-outside-polygon-010-ref.html"> 9 <meta name="flags" content="ahem" /> 10 <meta name="assert" content="The test verifies that evenodd behaves the 11 same as nonzero for shape-outside and that text 12 will wraps around the outer edge of a polygon."> 13 </head> 14 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 15 <style> 16 body { 17 margin: 0; 18 } 19 #container { 20 position: absolute; 21 top: 50px; 22 left: 10px; 23 font: 20px/1 Ahem; 24 width: 240px; 25 height: 240px; 26 background-color: red; 27 color: green; 28 } 29 #test-shape { 30 float: left; 31 width: 200px; 32 height: 200px; 33 shape-outside: polygon(evenodd, 0px 200px, 200px 200px, 200px 40px, 50px 40px, 50px 100px, 150px 100px, 150px 150px, 100px 150px, 100px 0px, 0px 0px); 34 } 35 .ref-shape { 36 position: absolute; 37 background-color: green; 38 left: 10px; 39 } 40 #ref-1 { 41 top: 50px; 42 width: 100px; 43 height: 40px; 44 } 45 #ref-2 { 46 top: 90px; 47 width: 200px; 48 height: 160px; 49 } 50 </style> 51 <body> 52 <p>The test passes if there is green square and no red.</p> 53 <div id="container"> 54 <div id="test-shape"></div> 55 XXXXXXX XXXXXXX XX XX XX XX XX XX XX XX XXXXXXXXXXXX XXXXXXXXXXXX 56 </div> 57 <div id="ref-1" class="ref-shape"></div> 58 <div id="ref-2" class="ref-shape"></div> 59 </div> 60 </body> 61 </html>