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 <meta name="flags" content="ahem"> | |
7 <head> | |
8 <style> | |
9 .container { | |
10 font: 50px/1 Ahem, sans-serif; | |
11 line-height: 50px; | |
12 width: 100px; | |
13 height: 100px; | |
14 border: 1px solid black; | |
15 color: black; | |
16 background-color: blue; | |
17 display: inline-block; | |
18 } | |
19 | |
20 #float-left { | |
21 float: left; | |
22 width: 100px; | |
23 height: 25px; | |
24 margin-bottom: 25px; | |
25 background-color: green; | |
26 color: green; | |
27 overflow: visible; | |
28 } | |
29 | |
30 #float-right { | |
31 float: right; | |
32 width: 100px; | |
33 height: 25px; | |
34 margin-bottom: 25px; | |
35 background-color: green; | |
36 color: green; | |
37 overflow: visible; | |
38 } | |
39 </style> | |
40 | |
41 <body> | |
42 <p>This should display two squares containing a green stripe, a blue stripe,
and a black rectangle, in that order.</p> | |
43 <div class="container"> | |
44 <div id="float-left"></div> | |
45 XX | |
46 </div> | |
47 <div class="container"> | |
48 <div id="float-right"></div> | |
49 XX | |
50 </div> | |
51 </body> | |
OLD | NEW |