4 <title>CSS Test: left float, url(svg), real image + shape-image-threshold + 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=
"help" href=
"http://www.w3.org/TR/css-shapes-1/#shape-image-threshold-property"/>
10 <link rel=
"match" href=
"reference/shape-image-007-ref.html"/>
11 <meta name=
"flags" content=
"ahem"/>
12 <meta name=
"assert" content=
"This test verifies that content wraps around the image pixels extracted from
13 a shape-outside svg file with shape-image-threshold set + the shape-margin in
15 <style type=
"text/css">
17 #test, #image
, #white
, .blue
, .failure
{
21 #test, #image
{ left: 10px; }
22 #image { z-index: -2; }
28 background-color: white
;
41 shape-outside: url
("support/left-half-rectangle-50.svg");
43 shape-image-threshold: 0.55;
48 background-color: blue
;
51 .left-line { left: 65px; }
52 .right-line { left: 125px; }
58 background-color: red
;
65 The test passes if the green rectangle on the right is completely between the two blue lines.
66 There should be no red.
68 <img id=
"image" src=
"support/left-half-rectangle-50.svg"/>
69 <div id=
"white"></div>
71 <div id=
"shape-image"></div>
74 <div class=
"blue left-line"></div>
75 <div class=
"blue right-line"></div>
76 <div class=
"failure"></div>