OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <title>CSS Test: vertical 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-vertical-rectangle-000-ref.html"> | |
7 <meta name="flags" content="ahem"> | |
8 <style> | |
9 .container { | |
10 width: 75px; | |
11 height: 100px; | |
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: 75px; | |
29 height: 100px; | |
30 shape-outside: rectangle(0px, 0px, 50px, 75px); | |
31 } | |
32 | |
33 .right { | |
34 float: right; | |
35 width: 75px; | |
36 height: 100px; | |
37 shape-outside: rectangle(25px, 0px, 50px, 75px); | |
38 } | |
39 </style> | |
40 </head> | |
41 <body> | |
42 <p>Test passes if you see two black rectangle boxes with a smaller white rec
tangle in one corner.</p> | |
43 <div class="container left-text"> | |
44 <div class="left"></div> | |
45 X<br/> | |
46 X<br/> | |
47 X<br/> | |
48 XXX<br/> | |
49 </div> | |
50 | |
51 <div class="container right-text"> | |
52 <div class="right"></div> | |
53 X<br/> | |
54 X<br/> | |
55 X<br/> | |
56 XXX<br/> | |
57 </div> | |
58 </body> | |
OLD | NEW |