4 <title>CSS Test: Shape from image - shape-margin
</title>
5 <link rel=
"author" title=
"Rebecca Hauck" href=
"mailto:rhauck@adobe.com"/>
6 <link rel=
"author" title=
"Bem Jones-Bey" href=
"mailto:bemjb@adobe.com"/>
7 <link rel=
"help" href=
"http://www.w3.org/TR/css-shapes-1/#shapes-from-image"/>
8 <link rel=
"help" href=
"http://www.w3.org/TR/css-shapes-1/#shape-outside-property"/>
9 <meta name=
"flags" content=
"ahem dom"/>
10 <meta name=
"assert" content=
"This test verifies that the content flows around the
11 shape defined in the images alpha channel and adjusted by
13 <!-- This test is derived from Example 7 in this version of the spec:
14 http://www.w3.org/TR/2014/WD-css-shapes-1-20140211/ -->
15 <style type=
"text/css">
26 shape-outside: url
("support/circle-no-shadow.png");
35 background-color: blue
;
40 <script src=
"../../../../resources/testharness.js"></script>
41 <script src=
"../../../../resources/testharnessreport.js"></script>
42 <script src=
"support/spec-example-utils.js"></script>
46 The test passes if the short green horizontal bars are the right of the circle,
47 the long green bar is beneath the circle, and no bars intersect the circle. There
51 <img id=
"test-image" src=
"support/circle-no-shadow.png"/>
52 <div id=
"margin-circle"></div>
53 <span id=
"line-0">XXXXXX
</span>
54 <span id=
"line-1">XXXXXX
</span>
55 <span id=
"line-2">XXXXXX
</span>
56 <span id=
"line-3">XXXXXX
</span>
57 <span id=
"line-4">XXXXXX
</span>
58 <span id=
"line-5">XXXXXX
</span>
59 <span id=
"line-6">XXXXXXXXXXXXX
</span>
63 approxShapeTest('test', 'line-', 2, [200, 214, 216, 214, 200, 158, 0]);