OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <title>CSS Test: shape-outside on floats with a positive bottom and top margin</
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="assert" content="This tests if positive margins on the logical top a
nd bottom sides of a float does not affect inline content wrapping around the sh
ape."> | |
7 <link rel="match" href="shape-outside-floats-margin-003-ref.html"> | |
8 <meta name="flags" content="ahem"> | |
9 <head> | |
10 <style> | |
11 .container { | |
12 font: 20px/1 Ahem, sans-serif; | |
13 line-height: 20px; | |
14 width: 100px; | |
15 height: 60px; | |
16 border: 1px solid black; | |
17 color: green; | |
18 display: inline-block; | |
19 background-color: red; | |
20 } | |
21 | |
22 #float-left { | |
23 float: left; | |
24 width: 100px; | |
25 height: 20px; | |
26 shape-outside: rectangle(0, 0, 100%, 100%) content-box; | |
27 margin-top: 20px; | |
28 margin-bottom: 20px; | |
29 background-color: green; | |
30 } | |
31 | |
32 #float-right { | |
33 float: right; | |
34 width: 100px; | |
35 height: 20px; | |
36 shape-outside: rectangle(0, 0, 100%, 100%) content-box; | |
37 margin-top: 20px; | |
38 margin-bottom: 20px; | |
39 background-color: green; | |
40 } | |
41 </style> | |
42 | |
43 <body> | |
44 <p>This should display two green rectangles. You should not see any red.</p> | |
45 <div class="container"> | |
46 <div id="float-left"> | |
47 </div> | |
48 XXXXX XXXXX | |
49 </div> | |
50 <div class="container"> | |
51 <div id="float-right"> | |
52 </div> | |
53 XXXXX XXXXX | |
54 </div> | |
55 </body> | |
OLD | NEW |