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: 16px Ahem, sans-serif; | 10 font: 20px Ahem, sans-serif; |
| 11 -webkit-font-smoothing: none; |
11 -webkit-flow-into: rectangle; | 12 -webkit-flow-into: rectangle; |
12 } | 13 } |
13 | 14 |
14 .region { -webkit-flow-from: rectangle; } | 15 .region { -webkit-flow-from: rectangle; } |
15 | 16 |
16 #region1 { | 17 #region1 { |
17 width: 180px; | 18 width: 180px; |
18 height: 100px; | 19 height: 100px; |
| 20 border: 1px solid green; |
19 -webkit-shape-inside: rectangle(0, 0, 130px, 100px); | 21 -webkit-shape-inside: rectangle(0, 0, 130px, 100px); |
20 margin-top: 10px; | 22 margin-top: 10px; |
21 } | 23 } |
22 #region2 { | 24 #region2 { |
23 width: 300px; | 25 width: 300px; |
24 height: 145px; | 26 height: 150px; |
| 27 border: 1px solid green; |
25 -webkit-shape-inside: rectangle(0, 0, 220px, 150px); | 28 -webkit-shape-inside: rectangle(0, 0, 220px, 150px); |
26 margin-top: 60px; | 29 margin-top: 60px; |
27 } | 30 } |
28 #region3 { | 31 #region3 { |
29 width: 300px; | 32 width: 300px; |
30 height: 50px; | 33 height: 50px; |
| 34 border: 1px solid green; |
31 margin-top: 60px; | 35 margin-top: 60px; |
32 } | 36 } |
33 </style> | 37 </style> |
34 </head> | 38 </head> |
35 <body> | 39 <body> |
36 <div id="rectangle"> | 40 <div id="rectangle"> |
37 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 |
38 <p>X X</p> | 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 |
39 <p style="color: green">X X X X X X</p> | 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 |
40 <p style="color: orange">X X X X</p> | 44 </div> |
41 <p>X X X X X X X X<p style="color: yellow">X X X X X X X X X X</p> X X</
p> | |
42 <div style="color: red"> X X X X X X X X X</div> | |
43 </div> | |
44 <div id="page"> | 45 <div id="page"> |
45 <div id="region1" class="region"></div> | 46 <div id="region1" class="region"></div> |
46 <div id="region2" class="region"></div> | 47 <div id="region2" class="region"></div> |
47 <div id="region3" class="region"></div> | 48 <div id="region3" class="region"></div> |
48 </div> | 49 </div> |
49 <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. |
50 The rectangles should flow through the regions and the shape-insides should
be applied to the first two regions.</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> |
51 <p> Bug <a href="http://webkit.org/b/107880">107880</a>: Regions should resp
ect shape-inside</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 </body> | 53 </body> |
53 </html> | 54 </html> |
OLD | NEW |