shape-outside-inset-011.html (1869B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test: left float, inset, % units</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-inset"> 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"> 8 <link rel="match" href="reference/shape-outside-inset-010-ref.html"/> 9 <meta name="flags" content="ahem" /> 10 <meta name="assert" content="The test verfies that text flows around a 11 left float with a shape-outside defined as 12 an inset rectangle in percentage units."> 13 </head> 14 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 15 <style> 16 #container { 17 position: relative; 18 margin-left: 25px; 19 } 20 #test-container { 21 width: 200px; 22 height: 200px; 23 font-family: Ahem; 24 font-size: 25px; 25 line-height: 1; 26 background-color: red; 27 color: green; 28 } 29 #test-shape { 30 float: left; 31 width: 200px; 32 height: 200px; 33 shape-outside: inset(25% 50% 25% 0%); 34 } 35 #static-shape { 36 position: absolute; 37 left: 0px; 38 width: 100px; 39 height: 100px; 40 top: 50px; 41 background-color: green; 42 } 43 </style> 44 <body> 45 <p>The test passes if there is a green square and no red.</p> 46 <div id="container"> 47 <div id="test-container"> 48 <div id="test-shape"></div> 49 XXXXXXXX XXXXXXXX XXXX XXXX XXXX XXXX XXXXXXXX XXXXXXXX 50 </div> 51 <div id="static-shape"></div> 52 </div> 53 </body> 54 </html>