4 <title>CSS Test: left float, url(png), real negative offset image + shape-margin (px)</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/#shapes-from-image"/>
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-image-006-ref.html"/>
10 <meta name="flags" content="ahem"/>
11 <meta name="assert" content="This test verifies that content wraps around all the image pixels
12 + the shape-margin when shape-outside is given a png file.
13 Additionally, the shape-outside: image element is given a negative
14 left offset relative to its containing block."/>
15 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
16 <style type="text/css">
30 shape-outside: url("support/left-half-rectangle.png");
39 background-color: blue;
41 .left-line { left: 65px; }
42 .right-line { left: 125px; }
48 background-color: red;
51 .container, .blue, .failure {
59 The test passes if the green rectangle on the right is completely between the two blue lines.
60 There should be no red.
62 <div id="test" class="container">
63 <div id="image"><img src="support/left-half-rectangle.png" style="margin-left: 10px"/></div>
66 <div class="blue left-line"></div>
67 <div class="blue right-line"></div>
68 <div class="failure"></div>