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-001-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 display: inline-block; | |
19 } | |
20 | |
21 #float-left { | |
22 float: left; | |
23 width: 100px; | |
24 height: 25px; | |
25 margin-top: 25px; | |
26 shape-outside: rectangle(0, 0, 100%, 200%); | |
27 background-color: blue; | |
28 } | |
29 | |
30 #float-right { | |
31 float: right; | |
32 width: 100px; | |
33 height: 25px; | |
34 margin-top: 25px; | |
35 shape-outside: rectangle(0, 0, 100%, 200%); | |
36 background-color: blue; | |
37 } | |
38 </style> | |
39 | |
40 <body> | |
41 <p>This should display two squares containing a green stripe, a blue stripe,
and a black rectangle, in that order.</p> | |
42 <div class="container"> | |
43 <div id="float-left"></div> | |
44 XX | |
45 </div> | |
46 <div class="container"> | |
47 <div id="float-right"></div> | |
48 XX | |
49 </div> | |
50 </body> | |
OLD | NEW |