shape-outside-inset-015.html (2062B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test: left float, inset + padding-box</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="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-box-values"> 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 left float with a shape-outside defined as 13 an inset rectangle + padding-box."> 14 </head> 15 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 16 <style> 17 #container { 18 position: relative; 19 margin-left: 25px; 20 } 21 #test-container { 22 width: 200px; 23 height: 200px; 24 font-family: Ahem; 25 font-size: 25px; 26 line-height: 1; 27 background-color: red; 28 color: green; 29 } 30 #test-shape { 31 float: left; 32 width: 50px; 33 height: 50px; 34 border: 25px solid red; 35 margin: 25px; 36 padding: 25px; 37 shape-outside: padding-box inset(0px 50px 0px -50px); 38 } 39 #static-shape { 40 position: absolute; 41 top: 50px; 42 left: 0px; 43 width: 100px; 44 height: 100px; 45 background-color: green; 46 } 47 </style> 48 <body> 49 <p>The test passes if there is a green square and no red.</p> 50 <div id="container"> 51 <div id="test-container"> 52 <div id="test-shape"></div> 53 XXXXXXXX XXXXXXXX XXXX XXXX XXXX XXXX XXXXXXXX XXXXXXXX 54 </div> 55 <div id="static-shape"></div> 56 </div> 57 </body> 58 </html>