OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <title>CSS Test: shape-outside on floats with a negative 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 a negative margin on the same logical
side as the float direction (eg: margin on logical left of a left float) proper
ly crops the shape."> | |
7 <link rel="match" href="shape-outside-floats-margin-000-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: 20px; | |
16 border: 1px solid black; | |
17 color: green; | |
18 display: inline-block; | |
19 } | |
20 | |
21 #float-left { | |
22 float: left; | |
23 width: 100px; | |
24 height: 20px; | |
25 shape-outside: rectangle(0, 0, 20%, 100%) content-box; | |
26 margin-left: -20px; | |
27 } | |
28 | |
29 #float-right { | |
30 float: right; | |
31 width: 100px; | |
32 height: 20px; | |
33 shape-outside: rectangle(80%, 0, 20%, 100%) content-box; | |
34 margin-right: -20px; | |
35 } | |
36 </style> | |
37 | |
38 <body> | |
39 <p>This should display two horizontal green bars, with white squares on oppo
site sides.</p> | |
40 <div class="container" style="text-align: right"> | |
41 <div id="float-right"> | |
42 </div> | |
43 XXXX | |
44 </div> | |
45 <div class="container"> | |
46 <div id="float-left"> | |
47 </div> | |
48 XXXX | |
49 </div> | |
50 </body> | |
OLD | NEW |