OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <style> | |
5 #shape-inside-vertical-lr { | |
6 width: 200px; | |
7 height: 220px; | |
8 shape-inside: polygon(15px 20px, 165px 20px, 165px 195px, 15px 195px); | |
9 -webkit-writing-mode: vertical-lr; | |
10 position: relative; | |
11 } | |
12 #shape-inside-vertical-rl { | |
13 width: 200px; | |
14 height: 220px; | |
15 shape-inside: polygon(15px 20px, 165px 20px, 165px 195px, 15px 195px); | |
16 -webkit-writing-mode: vertical-rl; | |
17 position: relative; | |
18 } | |
19 #border { | |
20 position: absolute; | |
21 top: 15px; | |
22 left: 10px; | |
23 width: 160px; | |
24 height: 185px; | |
25 border: 2px solid blue; | |
26 } | |
27 </style> | |
28 </head> | |
29 <body> | |
30 <div id="shape-inside-vertical-lr"> | |
31 <div id="border"></div> | |
32 This text should be contained by the blue square. | |
33 </div> | |
34 <div id="shape-inside-vertical-rl"> | |
35 <div id="border"></div> | |
36 This text should be contained by the blue square. | |
37 </div> | |
38 </body> | |
39 </html> | |
OLD | NEW |