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 <style> | 4 <style> |
9 /* The size of a square that just fits within a circle of radius r is r * sq
rt(2). In this | 5 /* The size of a square that just fits within a circle of radius r is r * sq
rt(2). In this |
10 case that's the size of one Ahem character: 20 * sqrt(2) == 28.28. | 6 case that's the size of one Ahem character: 20 * sqrt(2) == 28.28. |
11 */ | 7 */ |
12 .shape-inside { | 8 .shape-inside { |
13 width: 40px; | 9 width: 40px; |
14 height: 40px; | 10 height: 40px; |
15 font: 28.28px/1 Ahem, sans-serif; | 11 font: 28.28px/1 Ahem, sans-serif; |
16 color: green; | 12 color: green; |
17 border: 1px solid blue; | 13 border: 1px solid blue; |
(...skipping 23 matching lines...) Expand all Loading... |
41 X | 37 X |
42 </div> | 38 </div> |
43 <div class="shape-inside relative-units"> | 39 <div class="shape-inside relative-units"> |
44 X | 40 X |
45 </div> | 41 </div> |
46 <div class="shape-inside edge-case"> | 42 <div class="shape-inside edge-case"> |
47 X | 43 X |
48 </div> | 44 </div> |
49 </body> | 45 </body> |
50 </html> | 46 </html> |
OLD | NEW |