4 <title>CSS Test: left float, url(png), real image + shape-margin (px)
</title>
5 <link rel=
"author" title=
"Rebecca Hauck" href=
"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=
"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 <style type=
"text/css">
27 shape-outside: url
("support/left-half-rectangle.png");
33 background-color: blue
;
35 .left-line { left: 65px; }
36 .right-line { left: 125px; }
42 background-color: red
;
45 .container, .blue, .failure {
53 The test passes if the green rectangle on the right is completely between the two blue lines.
54 There should be no red.
56 <div id=
"test" class=
"container">
57 <img id=
"image" src=
"support/left-half-rectangle.png"/>
60 <div class=
"blue left-line"></div>
61 <div class=
"blue right-line"></div>
62 <div class=
"failure"></div>