OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script> | 4 <script> |
5 if (window.internals) | 5 if (window.internals) |
6 window.internals.settings.setCSSExclusionsEnabled(true); | 6 window.internals.settings.setCSSExclusionsEnabled(true); |
7 </script> | 7 </script> |
8 <style> | 8 <style> |
9 #rectangle { | 9 #rectangle { |
10 font: 20px Ahem, sans-serif; | 10 font: 20px Ahem, sans-serif; |
11 -webkit-font-smoothing: none; | 11 -webkit-font-smoothing: none; |
12 -webkit-flow-into: rectangle; | 12 -webkit-flow-into: rectangle; |
13 } | 13 } |
14 | 14 |
15 .region { -webkit-flow-from: rectangle; } | 15 .region { -webkit-flow-from: rectangle; } |
16 | 16 |
17 #region1 { | 17 #region1 { |
18 width: 180px; | 18 width: 180px; |
19 height: 100px; | 19 height: 100px; |
20 border: 1px solid green; | 20 border: 1px solid green; |
21 -webkit-shape-inside: rectangle(0, 0, 130px, 100px); | 21 shape-inside: rectangle(0, 0, 130px, 100px); |
22 margin-top: 10px; | 22 margin-top: 10px; |
23 } | 23 } |
24 #region2 { | 24 #region2 { |
25 width: 300px; | 25 width: 300px; |
26 height: 150px; | 26 height: 150px; |
27 border: 1px solid green; | 27 border: 1px solid green; |
28 -webkit-shape-inside: rectangle(0, 0, 220px, 150px); | 28 shape-inside: rectangle(0, 0, 220px, 150px); |
29 margin-top: 60px; | 29 margin-top: 60px; |
30 } | 30 } |
31 #region3 { | 31 #region3 { |
32 width: 300px; | 32 width: 300px; |
33 height: 50px; | 33 height: 50px; |
34 border: 1px solid green; | 34 border: 1px solid green; |
35 margin-top: 60px; | 35 margin-top: 60px; |
36 } | 36 } |
37 </style> | 37 </style> |
38 </head> | 38 </head> |
39 <body> | 39 <body> |
40 <div id="rectangle"> | 40 <div id="rectangle"> |
41 X X X X X X X X X X X X X X X X X X X X X X X X | 41 X X X X X X X X X X X X X X X X X X X X X X X X |
42 X X X X X X X X X X X X X X X X X X X X X X X X | 42 X X X X X X X X X X X X X X X X X X X X X X X X |
43 X X X X X X X X X X X X X X X X X X X X X X X X | 43 X X X X X X X X X X X X X X X X X X X X X X X X |
44 </div> | 44 </div> |
45 <div id="page"> | 45 <div id="page"> |
46 <div id="region1" class="region"></div> | 46 <div id="region1" class="region"></div> |
47 <div id="region2" class="region"></div> | 47 <div id="region2" class="region"></div> |
48 <div id="region3" class="region"></div> | 48 <div id="region3" class="region"></div> |
49 </div> | 49 </div> |
50 <p>Requires Ahem font. Two different -shape-inside property are applied to t
he first and second region. The third region is a simple region without -shape-i
nside. | 50 <p>Requires Ahem font. Two different -shape-inside property are applied to t
he first and second region. The third region is a simple region without -shape-i
nside. |
51 The inline content should flow through the regions and the shape-insides sho
uld be applied to the first two regions thus the content should be only 130px wi
de in the first (original width: 180px) and only 220px wide in the second (origi
nal width: 300px) region.</p> | 51 The inline content should flow through the regions and the shape-insides sho
uld be applied to the first two regions thus the content should be only 130px wi
de in the first (original width: 180px) and only 220px wide in the second (origi
nal width: 300px) region.</p> |
52 <p>Bug <a href="http://webkit.org/b/115456">115456</a>: [CSS Regions][CSS Ex
clusions] Shape-inside on regions should respect region borders and paddings</p> | 52 <p>Bug <a href="http://webkit.org/b/115456">115456</a>: [CSS Regions][CSS Ex
clusions] Shape-inside on regions should respect region borders and paddings</p> |
53 </body> | 53 </body> |
54 </html> | 54 </html> |
OLD | NEW |