OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <style> | |
5 .content{ | |
6 width: 400px; | |
7 height: 800px; | |
8 shape-inside: polygon(0 0, 100% 0, 100% 100%); | |
9 outline: 2px solid black; | |
10 } | |
11 #firstParagraph { padding-top: 100px; } | |
12 </style> | |
13 </head> | |
14 <body> | |
15 <div class="content"> | |
16 <p id="firstParagraph">Alice was beginning to get very tired of sitting by h
er sister on the | |
17 bank, and of having nothing to do: once or twice she had peeped into the | |
18 book her sister was reading, but it had no pictures or conversations in | |
19 it, 'and what is the use of a book,' thought Alice 'without pictures or | |
20 conversation?'</p> | |
21 | |
22 <p>So she was considering in her own mind (as well as she could, for the | |
23 hot day made her feel very sleepy and stupid), whether the pleasure | |
24 of making a daisy-chain would be worth the trouble of getting up and | |
25 picking the daisies, when suddenly a White Rabbit with pink eyes ran | |
26 close by her.</p> | |
27 </div> | |
28 <p> | |
29 A triangle shape is defined through the left-top, right-top, right-bottom points
of the rectangle. | |
30 The content should respect the shape-inside polygon boundaries after we applied
the padding.</p> | |
31 <p>Bug <a href="http://webkit.org/b/112929 ">112929</a>: [CSS Exclusions] Increa
sing padding does not correctly layout child blocks</p> | |
32 </body> | |
33 </html> | |
OLD | NEW |