shape-image-025.html (1983B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test: shape-outside from first frame of animated gif</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/#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-025-ref.html"/> 9 <meta name="flags" content="ahem"/> 10 <meta name="assert" content="This test verifies that shape-outside is extracted from the 11 first frame of an animated gif."/> 12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 13 <style type="text/css"> 14 body { margin: 0; } 15 .container { 16 left: 10px; 17 width: 200px; 18 font: 50px/1 Ahem; 19 color: rgb(0,100,0); 20 } 21 #image { 22 float: left; 23 shape-outside: url("support/animated.gif"); 24 } 25 .blue-line { 26 top: 50px; 27 left: 60px; 28 width: 2px; 29 height: 140px; 30 background-color: blue; 31 } 32 .square { 33 width: 50px; 34 height: 50px; 35 } 36 .green { 37 left: 10px; 38 background-color: rgb(0,100,0); 39 } 40 .failure { 41 left: 60px; 42 background-color: red; 43 z-index: -1; 44 } 45 .container, .blue-line, .square, .failure { position: absolute; } 46 .container, .square, .failure { top: 70px; } 47 </style> 48 </head> 49 <body> 50 <p> 51 The test passes if there are two identical green rectangles on either side of the blue line. 52 There should be no red. 53 </p> 54 <div class="container"> 55 <img id="image" src="support/animated.gif"/> 56 X<br/>X 57 </div> 58 <div class="green square"></div> 59 <div class="blue-line"></div> 60 <div class="failure square"></div> 61 </body> 62 </html>