4 <title>CSS Test: right float, polygon + border-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/#shape-margin-property">
10 <link rel=
"help" href=
"http://www.w3.org/TR/css-shapes-1/#border-box">
11 <link rel=
"match" href=
"reference/shape-outside-polygon-010-ref.html">
12 <meta name=
"flags" content=
"ahem" />
13 <meta name=
"assert" content=
"The test verifies that text wraps around a
14 right float with a shape-outside defined as
15 an polygon from the border box with a shape margin.">
30 background-color: red;
38 border:
10px solid transparent;
41 shape-outside: border-box polygon(
20%
20%,
100%
20%,
100%
90%,
50%
90%,
50%
70%,
70%
70%,
70%
40%,
20%
40%);
45 background-color: green;
67 <p>The test passes if there is green square and no red.
</p>
69 <div id=
"test-shape"></div>
70 XXXXXXXXXXXX XXXXXXXXXXXX XXX XXX XXX XXXXXXXX XXXXXXXX XXXXXX XXXXXX XXXXXX XXXXXXXXXXXX XXXXXXXXXXXX
72 <div id=
"ref-1" class=
"ref-shape"></div>
73 <div id=
"ref-2" class=
"ref-shape"></div>
74 <div id=
"ref-3" class=
"ref-shape"></div>