shape-image-014.html (1483B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test: Wrapping content around shape given by a right floating svg file</title> 5 <link rel="author" title="Zoltan Horvath" href="mailto:zoltan@adobe.com"/> 6 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-image"/> 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"/> 8 <link rel="match" href="reference/shape-image-002-ref.html"/> 9 <meta name="flags" content="ahem"/> 10 <meta name="assert" content="This test verifies that content wraps around the shape defined by an svg file."/> 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"> 13 .container { 14 position: relative; 15 font-family: Ahem; 16 font-size: 50px; 17 line-height: 50px; 18 color: rgb(0, 100, 0); 19 background-color: red; 20 } 21 #test { 22 width: 100px; 23 height: 100px; 24 text-align: right; 25 } 26 #image { 27 float: right; 28 margin-left: 10px; 29 shape-outside: url("support/right-half-rectangle.svg"); 30 } 31 </style> 32 </head> 33 <body> 34 <p> 35 The test passes if you see a solid green square. There should be no red. 36 </p> 37 <div id="test" class="container"> 38 <img id="image" src="support/right-half-rectangle.svg"/> 39 X 40 X 41 </div> 42 <div id="overlay"></div> 43 </body> 44 </html>