OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <title>CSS Test: square shape-outside on floats</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="author" title="Hans Muller" href="mailto:hmuller@adobe.com"> | |
6 <link rel="help" href="http://dev.w3.org/csswg/css-shapes-1/#shape-margin-proper
ty"> | |
7 <link rel="match" href="shape-outside-floats-shape-margin-001-ref.html"> | |
8 <meta name="flags" content="ahem"> | |
9 <style> | |
10 #container { | |
11 font: 20px/1 Ahem, sans-serif; | |
12 line-height: 20px; | |
13 width: 200px; | |
14 height: 300px; | |
15 text-align: right; | |
16 } | |
17 | |
18 #float-right { | |
19 float: right; | |
20 position: relative; | |
21 overflow: visible; | |
22 width: 200px; | |
23 height: 300px; | |
24 shape-outside: polygon(100px 20px, 200px 20px, 200px 80px, 100px 80px); | |
25 shape-margin: 20px; | |
26 } | |
27 | |
28 #svg-shape { | |
29 position: absolute; | |
30 display:block; | |
31 top: 0px; | |
32 right: -20px; | |
33 width: 142px; | |
34 height: 102px; | |
35 } | |
36 </style> | |
37 | |
38 <body> | |
39 <p>The right edges of the five black squares should follow the left side of the
outer rounded rectangle boundary and each square should appear on a subsequent l
ine.</p> | |
40 <div id="container"> | |
41 <div id="float-right"> | |
42 <svg id="svg-shape" xmlns="http://www.w3.org/2000/"> | |
43 <rect x="20" y="20" width="100" height="60" fill="none" stroke="gree
n"></rect> | |
44 <rect x="1" y="1" width="140" height="100" rx="20" ry="20" fill="non
e" stroke="green"></rect> | |
45 </svg> | |
46 </div> | |
47 X<br/>X<br/>X<br/>X<br/>X | |
48 </div> | |
49 </body> | |
OLD | NEW |