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