OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <title>CSS Test: horizontal rectangle 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="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property
"> | |
6 <link rel="match" href="shape-outside-floats-horizontal-rectangle-000-ref.html"> | |
7 <meta name="flags" content="ahem"> | |
8 <style> | |
9 .container { | |
10 width: 100px; | |
11 height: 75px; | |
12 font: 25px/1 Ahem; | |
13 line-height: 25px; | |
14 border: 10px solid black; | |
15 display: inline-block; | |
16 } | |
17 | |
18 .left-text { | |
19 text-align: left; | |
20 } | |
21 | |
22 .right-text { | |
23 text-align: right; | |
24 } | |
25 | |
26 .left { | |
27 float: left; | |
28 width: 100px; | |
29 height: 75px; | |
30 shape-outside: rectangle(0px, 0px, 75px, 50px); | |
31 } | |
32 | |
33 .right { | |
34 float: right; | |
35 width: 100px; | |
36 height: 75px; | |
37 shape-outside: rectangle(25px, 0px, 75px, 50px); | |
38 } | |
39 </style> | |
40 <body> | |
41 <p>Test passes if you see two black rectangle boxes with a smaller white rec
tangle in one corner of each.</p> | |
42 <div class="container left-text"> | |
43 <div class="left"></div> | |
44 X<br/> | |
45 X<br/> | |
46 XXXX<br/> | |
47 </div> | |
48 | |
49 <div class="container right-text"> | |
50 <div class="right"></div> | |
51 X<br/> | |
52 X<br/> | |
53 XXXX<br/> | |
54 </div> | |
55 </body> | |
OLD | NEW |