shape-outside-inset-010.html (1810B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test: left float, inset, px 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 px 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: 25px/1 Ahem; 24 background-color: red; 25 color: green; 26 } 27 #test-shape { 28 float: left; 29 width: 200px; 30 height: 200px; 31 shape-outside: inset(50px 100px 50px 0px); 32 } 33 #static-shape { 34 position: absolute; 35 left: 0px; 36 width: 100px; 37 height: 100px; 38 top: 50px; 39 background-color: green; 40 } 41 </style> 42 <body> 43 <p>The test passes if there is a green square and no red.</p> 44 <div id="container"> 45 <div id="test-container"> 46 <div id="test-shape"></div> 47 XXXXXXXX XXXXXXXX XXXX XXXX XXXX XXXX XXXXXXXX XXXXXXXX 48 </div> 49 <div id="static-shape"></div> 50 </div> 51 </body> 52 </html>