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