OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <title>CSS Test: shape-outside on floats shape clipped to bottom of margin box</
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-000-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: green; | |
17 background-color: red; | |
18 display: inline-block; | |
19 } | |
20 | |
21 #float-left { | |
22 float: left; | |
23 width: 100px; | |
24 height: 100px; | |
25 margin-bottom: -50px; | |
26 shape-outside: rectangle(0, 0, 100%, 200%); | |
27 background-color: green; | |
28 } | |
29 | |
30 #float-right { | |
31 float: right; | |
32 width: 100px; | |
33 height: 100px; | |
34 margin-bottom: -50px; | |
35 shape-outside: rectangle(0, 0, 100%, 200%); | |
36 background-color: green; | |
37 } | |
38 </style> | |
39 | |
40 <body> | |
41 <p>This should display two green squares. You should not see any red.</p> | |
42 <div class="container"> | |
43 <div id="float-left"> | |
44 </div> | |
45 XX | |
46 </div> | |
47 <div class="container"> | |
48 <div id="float-right"> | |
49 </div> | |
50 XX | |
51 </div> | |
52 </body> | |
OLD | NEW |