4 <title>CSS Test: Shape smaller than float content area -
1 float
</title>
5 <link rel=
"author" title=
"Rebecca Hauck" href=
"mailto:rhauck@adobe.com"/>
6 <link rel=
"help" href=
"http://www.w3.org/TR/css-shapes-1/#relation-to-box-model-and-float-behavior"/>
7 <link rel=
"help" href=
"http://www.w3.org/TR/css-shapes-1/#supported-basic-shapes"/>
8 <link rel=
"help" href=
"http://www.w3.org/TR/css-shapes-1/#shape-outside-property"/>
9 <link rel=
"match" href=
"reference/shape-outside-007-ref.html"/>
10 <meta name=
"flags" content=
"ahem"/>
11 <meta name=
"assert" content=
"This test verifies that inline content only wraps around the
12 shape, and otherwise overlays the rest of the float margin
14 <!-- This test is derived from Example 5 in this version of the spec:
15 http://www.w3.org/TR/2013/WD-css-shapes-1-20131203/ -->
16 <style type=
"text/css">
22 border: 1px solid black
;
29 shape-outside: polygon
(0 70px, 50px 120px, 0 120px);
35 #test, #failure-container
{
43 border-bottom: 1px solid black
;
48 background-color: red
;
76 background-color: lightblue
;
78 clip-path: polygon
(0% 50%, 50% 100%, 0 100%);;
85 The test passes if one green bar is inside the top rectangle, three green bars
86 are in the bottom rectangle, and none intersect the triangle. There should be no red.
88 <div id=
"test" class=
"container">
89 <div id=
"test-float-left"></div>
90 XXXXXXXXXXXX XXXXXXXXXXXX XXXXXXXXXXX XXXXXXXXXX
92 <div id=
"margin-line"></div>
93 <div id=
"failure-container">
94 <div id=
"bar-1" class=
"fail"></div>
95 <div id=
"bar-2" class=
"fail"></div>
96 <div id=
"bar-3" class=
"fail"></div>
97 <div id=
"bar-4" class=
"fail"></div>
99 <div id=
"triangle"></div>