4 <title>CSS Test: Shape smaller than float content area -
2 floats
</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-008-ref.html"/>
10 <meta name=
"flags" content=
"ahem"/>
11 <meta name=
"assert" content=
"This test verifies that inline content only wraps around the
12 shapes, and otherwise overlays the rest of the float margin
13 boxes when two floats are stacked next to each other."/>
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
;
80 background-color: lightblue
;
81 clip-path: polygon
(0% 50%, 50% 100%, 0 100%);;
96 The test passes if one green bar is inside the top rectangle, four green bars
97 are in the bottom rectangle, and none intersect the triangles. There should be no
100 <div id=
"test" class=
"container">
101 <div class=
"test-float-left"></div>
103 <div class=
"test-float-left"></div>
109 <div id=
"margin-line"></div>
110 <div id=
"failure-container">
111 <div id=
"bar-1" class=
"fail"></div>
112 <div id=
"bar-2" class=
"fail"></div>
113 <div id=
"bar-3" class=
"fail"></div>
114 <div id=
"bar-4" class=
"fail"></div>
115 <div id=
"bar-5" class=
"fail"></div>
117 <div id=
"triangle-1" class=
"triangle"></div>
118 <div id=
"triangle-2" class=
"triangle"></div>