4 <title>CSS Test: Image shape with margin-right + shape-margin on a left float
</title>
5 <script src=
"/js-test-resources/ahem.js"></script>
6 <link rel=
"author" title=
"Rebecca Hauck" href=
"rhauck@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 <link rel=
"help" href=
"http://www.w3.org/TR/css-shapes/#shape-margin-property"/>
10 <meta name=
"flags" content=
"ahem image"/>
11 <meta name=
"assert" content=
"This test verifies that the image shape that defines the float
12 area is clipped to the float's margin box and respects the
13 shape-margin extending beyond the margin-left, causing the
14 text to be pushed below the defined shape."/>
15 <style type=
"text/css">
30 color: rgb
(0, 100, 0);
37 shape-outside: url
(../resources/square.png);
47 background-color: black
;
52 background-color: red
;
59 The test passes if the green rectangle is below the line. There should be no red.
64 <div id=
"failure"></div>
66 <div id=
"test" class=
"container">
67 <div id=
"shape-div"></div>