4 <title>CSS Test: right float, polygon + content-box + shape-margin
</title>
5 <script src=
"../../../resources/ahem.js"></script>
6 <link rel=
"author" title=
"Rebecca Hauck" href=
"mailto:rhauck@adobe.com">
7 <link rel=
"help" href=
"http://www.w3.org/TR/css-shapes-1/#funcdef-polygon">
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-1/#content-box">
10 <link rel=
"match" href=
"reference/shape-outside-polygon-010-ref.html">
11 <meta name=
"flags" content=
"ahem" />
12 <meta name=
"assert" content=
"The test verifies that text wraps around a
13 right float with a shape-outside defined as
14 an polygon from the content box wtih a shape margin.">
29 background-color: red;
37 border:
10px solid transparent;
40 shape-outside: content-box polygon(
30%
20%,
100%
20%,
100%
80%,
60%
80%,
60%
70%,
80%
70%,
80%
40%,
30%
40%);
44 background-color: green;
66 <p>The test passes if there is green square and no red.
</p>
68 <div id=
"test-shape"></div>
69 XXXXXXXXXXXX XXXXXXXXXXXX XXX XXX XXX XXX XXXXXXXX XXXXXX XXXXXX XXXXXX XXXXXXXXXXXX XXXXXXXXXXXX
71 <div id=
"ref-1" class=
"ref-shape"></div>
72 <div id=
"ref-2" class=
"ref-shape"></div>
73 <div id=
"ref-3" class=
"ref-shape"></div>