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