| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 .shape-inside { | 5 .shape-inside { |
| 6 width: 200px; | 6 width: 200px; |
| 7 height: 300px; | 7 height: 300px; |
| 8 shape-inside: rectangle(10px, 15px, 170px, 280px); | 8 shape-inside: polygon(10px 15px, 180px 15px, 180px 295px, 10px 295px); |
| 9 position: relative; | 9 position: relative; |
| 10 } | 10 } |
| 11 .rl { -webkit-writing-mode: vertical-rl; } | 11 .rl { -webkit-writing-mode: vertical-rl; } |
| 12 .lr { -webkit-writing-mode: vertical-lr; } | 12 .lr { -webkit-writing-mode: vertical-lr; } |
| 13 .border { | 13 .border { |
| 14 position: absolute; | 14 position: absolute; |
| 15 top: 13px; | 15 top: 13px; |
| 16 left: 8px; | 16 left: 8px; |
| 17 width: 170px; | 17 width: 170px; |
| 18 height: 280px; | 18 height: 280px; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 35 <div class="border"></div> | 35 <div class="border"></div> |
| 36 <div> | 36 <div> |
| 37 <p>Paragraph 1. This paragraph should start at the top left corner o
f the blue | 37 <p>Paragraph 1. This paragraph should start at the top left corner o
f the blue |
| 38 rectangle. Its top and bottom edges should be within the blue rectan
gle. | 38 rectangle. Its top and bottom edges should be within the blue rectan
gle. |
| 39 </div> | 39 </div> |
| 40 <p>Paragraph 2. This paragraph should be to the right of paragraph 1. It
s top | 40 <p>Paragraph 2. This paragraph should be to the right of paragraph 1. It
s top |
| 41 and bottom edges should also be within the blue rectangle. | 41 and bottom edges should also be within the blue rectangle. |
| 42 </div> | 42 </div> |
| 43 </body> | 43 </body> |
| 44 </html> | 44 </html> |
| OLD | NEW |