4 <title>CSS Test: shape-outside from img element with different size than the image file
</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=
"match" href=
"reference/shape-image-024-ref.html"/>
9 <meta name=
"flags" content=
"ahem"/>
10 <meta name=
"assert" content=
"This test verifies that content wraps around all the image pixels
11 calculated from the size of the img element, which is different
12 than the size of the image itself."/>
13 <style type=
"text/css">
29 shape-outside: url
("support/left-half-rectangle.png");
35 background-color: blue
;
37 .left-line { left: 115px; }
38 .right-line { left: 230px; }
44 background-color: red
;
47 .container, .blue, .failure {
55 The test passes if the green rectangle on the right is completely between the two blue lines.
56 There should be no red.
58 <div id=
"test" class=
"container">
59 <img id=
"image" src=
"support/left-half-rectangle.png"/>
62 <div class=
"blue left-line"></div>
63 <div class=
"blue right-line"></div>
64 <div class=
"failure"></div>