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 shape-inside: rectangle(0px, 0px, 400px, 200px, 50px, 50px); | |
29 -webkit-writing-mode: vertical-rl; | |
30 font: 50px/1 Ahem, sans-serif; | |
31 color: green; | |
32 } | |
33 | |
34 .shape-inside-vertical-lr { | |
35 position: absolute; | |
36 top: 0px; | |
37 left: 0px; | |
38 width: 400px; | |
39 height: 200px; | |
40 shape-inside: rectangle(0px, 0px, 400px, 200px, 50px, 50px); | |
41 -webkit-writing-mode: vertical-lr; | |
42 font: 50px/1 Ahem, sans-serif; | |
43 color: green; | |
44 } | |
45 </style> | |
46 </head> | |
47 <body> | |
48 <p>The green rectangle should appear just to the left of the grey rounded rectan
gle's upper corners.</p> | |
49 <div class="shape-container"> | |
50 <div class="shape-background"></div> | |
51 <div class="shape-inside-vertical-rl">XXXX</div> | |
52 </div> | |
53 </p> | |
54 | |
55 <p>The green rectangle should appear just to the left of the grey rounded rectan
gle's upper corners.</p> | |
56 <div class="shape-container"> | |
57 <div class="shape-background"></div> | |
58 <div class="shape-inside-vertical-lr">XXXX</div> | |
59 </div> | |
60 </body> | |
61 </html> | |
OLD | NEW |