OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <title>CSS Test: horizontal rectangle shape-outside on floats, vertical-rl writi
ng mode</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-002-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 -webkit-writing-mode: vertical-rl; | |
17 } | |
18 | |
19 .left-text { | |
20 text-align: left; | |
21 } | |
22 | |
23 .right-text { | |
24 text-align: right; | |
25 } | |
26 | |
27 .left { | |
28 float: left; | |
29 width: 75px; | |
30 height: 100px; | |
31 shape-outside: rectangle(25px, 0px, 50px, 75px); | |
32 } | |
33 | |
34 .right { | |
35 float: right; | |
36 width: 75px; | |
37 height: 100px; | |
38 shape-outside: rectangle(25px, 25px, 50px, 75px); | |
39 } | |
40 </style> | |
41 </head> | |
42 <body> | |
43 <p>Test passes if you see two black rectangle boxes with a smaller white rec
tangle in one corner of each.</p> | |
44 <div class="container left-text"> | |
45 <div class="left"></div> | |
46 X<br/> | |
47 X<br/> | |
48 XXXX<br/> | |
49 </div> | |
50 | |
51 <div class="container right-text"> | |
52 <div class="right"></div> | |
53 X<br/> | |
54 X<br/> | |
55 XXXX<br/> | |
56 </div> | |
57 </body> | |
OLD | NEW |