OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <style> | |
5 .shape-inside { | |
6 position: relative; | |
7 width: 200px; | |
8 height: 200px; | |
9 font: 50px/1 Ahem, sans-serif; | |
10 color: green; | |
11 } | |
12 | |
13 .blue { | |
14 color: blue; | |
15 } | |
16 | |
17 .shape-outline { | |
18 position: absolute; | |
19 top: 0px; | |
20 left: 0px; | |
21 width: 200px; | |
22 height: 200px; | |
23 } | |
24 </style> | |
25 </head> | |
26 <body> | |
27 <p>The solid green and blue rectangles should be contained by the blue trian
gle outlines.</p> | |
28 <div class="shape-inside"> | |
29 <svg class="shape-outline" xmlns="http://www.w3.org/2000/svg"> | |
30 <polygon points="0,0 200,200 0,200" stroke="blue" fill="none"/> | |
31 </svg> | |
32 <br/>X<br/><span class="blue">XX</span><br/>XXX | |
33 </div> | |
34 <p>Writing-mode is horizontal-tb</p> | |
35 | |
36 <div class="shape-inside" style="-webkit-writing-mode: vertical-rl"> | |
37 <svg class="shape-outline" xmlns="http://www.w3.org/2000/svg"> | |
38 <polygon points="0,0 200,200 0,200" stroke="blue" fill="none"/> | |
39 </svg> | |
40 </br/> X<br/> <span class="blue">XX</span><b
r/> XXX | |
41 </div> | |
42 <p>Writing-mode is vertical-rl.</p> | |
43 | |
44 <div class="shape-inside" style="-webkit-writing-mode: vertical-lr"> | |
45 <svg class="shape-outline" xmlns="http://www.w3.org/2000/svg"> | |
46 <polygon points="0,0 200,200 0,200" stroke="blue" fill="none"/> | |
47 </svg> | |
48 XXX<br/> <span class="blue">XX</span><br/> &
nbsp;X | |
49 </div> | |
50 <p>Writing-mode is vertical-lr.</p> | |
51 </body> | |
52 </html> | |
OLD | NEW |