OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <title>CSS Test: shape-outside on floats shape clipped to left and right of marg
in box, positive margin on inside edge of float</title> | |
3 <link rel="author" title="Adobe" href="http://html.adobe.com/"> | |
4 <link rel="author" title="Bem Jones-Bey" href="mailto:bjonesbe@adobe.com"> | |
5 <link rel="help" href="http://dev.w3.org/csswg/css-shapes-1/#relation-to-box-mod
el-and-float-behavior"> | |
6 <link rel="match" href="shape-outside-floats-clipped-005-ref.html"> | |
7 <meta name="flags" content="ahem"> | |
8 <head> | |
9 <style> | |
10 .container { | |
11 font: 50px/1 Ahem, sans-serif; | |
12 line-height: 50px; | |
13 width: 100px; | |
14 height: 100px; | |
15 border: 1px solid black; | |
16 color: black; | |
17 background-color: green; | |
18 } | |
19 | |
20 #float-left { | |
21 float: left; | |
22 margin-left: 25px; | |
23 width: 25px; | |
24 height: 100px; | |
25 shape-outside: rectangle(0, 0, 200%, 100%); | |
26 background-color: blue; | |
27 } | |
28 | |
29 #float-right { | |
30 float: right; | |
31 margin-right: 25px; | |
32 width: 25px; | |
33 height: 100px; | |
34 shape-outside: rectangle(-100%, 0, 200%, 100%); | |
35 background-color: blue; | |
36 } | |
37 </style> | |
38 | |
39 <body> | |
40 <p>This should display a green stripe, a blue stripe, and a black rectangle,
in that order.</a> | |
41 <div class="container"> | |
42 <div id="float-left"></div> | |
43 X X | |
44 </div> | |
45 <p>This should display a black rectangle, a blue stripe, and a green stripe,
in that order.</a> | |
46 <div class="container" style="text-align: right"> | |
47 <div id="float-right"></div> | |
48 X X | |
49 </div> | |
50 </body> | |
OLD | NEW |