OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script> | |
5 if (window.internals) | |
6 window.internals.settings.setCSSExclusionsEnabled(true); | |
7 </script> | |
8 <!-- | 4 <!-- |
9 In this test the shape-inside shape is a rounded rectangle configured as a circl
e with radius of 100px. | 5 In this test the shape-inside shape is a rounded rectangle configured as a circl
e with radius of 100px. |
10 The shape-inside element contains a single square Ahem font character that just
fits wthin the circle. | 6 The shape-inside element contains a single square Ahem font character that just
fits wthin the circle. |
11 That means that the character's size is sqrt(2)*100px, which is 141.41356px. | 7 That means that the character's size is sqrt(2)*100px, which is 141.41356px. |
12 --> | 8 --> |
13 <style> | 9 <style> |
14 #shape-container { | 10 #shape-container { |
15 position: relative; | 11 position: relative; |
16 display: inline-block; | 12 display: inline-block; |
17 width: 200px; | 13 width: 200px; |
(...skipping 24 matching lines...) Expand all Loading... |
42 </style> | 38 </style> |
43 </head> | 39 </head> |
44 <body> | 40 <body> |
45 <p>The green rectangle should appear within the grey circle.</p> | 41 <p>The green rectangle should appear within the grey circle.</p> |
46 <div id="shape-container"> | 42 <div id="shape-container"> |
47 <div id="shape-background"></div> | 43 <div id="shape-background"></div> |
48 <div id="shape-inside">X</div> | 44 <div id="shape-inside">X</div> |
49 </div> | 45 </div> |
50 </body> | 46 </body> |
51 </html> | 47 </html> |
OLD | NEW |