OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <title>CSS Test: vertical rectangle shape-outside on floats, vertical-lr writing
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-vertical-rectangle-001-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 -webkit-writing-mode: vertical-lr; | |
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: 100px; | |
30 height: 75px; | |
31 shape-outside: rectangle(0px, 0px, 75px, 50px); | |
32 } | |
33 | |
34 .right { | |
35 float: right; | |
36 width: 100px; | |
37 height: 75px; | |
38 shape-outside: rectangle(0px, 25px, 75px, 50px); | |
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.</p> | |
44 <div class="container left-text"> | |
45 <div class="left"></div> | |
46 X<br/> | |
47 X<br/> | |
48 X<br/> | |
49 XXX<br/> | |
50 </div> | |
51 | |
52 <div class="container right-text"> | |
53 <div class="right"></div> | |
54 X<br/> | |
55 X<br/> | |
56 X<br/> | |
57 XXX<br/> | |
58 </div> | |
59 </body> | |
OLD | NEW |