OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <style> | |
5 .shape-container { | |
6 position: relative; | |
7 width: 400px; | |
8 height: 200px; | |
9 margin: 10px; | |
10 } | |
11 | |
12 .shape-background { | |
13 position: absolute; | |
14 left: 0px; | |
15 top: 0px; | |
16 width: 400px; | |
17 height: 200px; | |
18 border-radius: 50px / 50px; | |
19 background-color: rgb(200,200,200); | |
20 } | |
21 | |
22 .shape-inside-vertical-rl { | |
23 position: absolute; | |
24 top: 0px; | |
25 left: 0px; | |
26 width: 400px; | |
27 height: 200px; | |
28 -webkit-writing-mode: vertical-rl; | |
29 font: 50px/1 Ahem, sans-serif; | |
30 color: green; | |
31 } | |
32 | |
33 .shape-inside-vertical-lr { | |
34 position: absolute; | |
35 top: 0px; | |
36 left: 0px; | |
37 width: 400px; | |
38 height: 200px; | |
39 -webkit-writing-mode: vertical-lr; | |
40 font: 50px/1 Ahem, sans-serif; | |
41 color: green; | |
42 } | |
43 </style> | |
44 </head> | |
45 <body> | |
46 <p>The green rectangle should appear just to the left of the grey rounded rectan
gle's upper corners.</p> | |
47 <div class="shape-container"> | |
48 <div class="shape-background"></div> | |
49 <div class="shape-inside-vertical-rl"><br/>XXXX</div> | |
50 </div> | |
51 </p> | |
52 | |
53 <p>The green rectangle should appear just to the left of the grey rounded rectan
gle's upper corners.</p> | |
54 <div class="shape-container"> | |
55 <div class="shape-background"></div> | |
56 <div class="shape-inside-vertical-lr"><br/>XXXX</div> | |
57 </div> | |
58 </body> | |
59 </html> | |
OLD | NEW |