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 12 matching lines...) Expand all Loading... |
30 X | 26 X |
31 </div> | 27 </div> |
32 <div class="shape-inside relative-units"> | 28 <div class="shape-inside relative-units"> |
33 X | 29 X |
34 </div> | 30 </div> |
35 <div class="shape-inside edge-case"> | 31 <div class="shape-inside edge-case"> |
36 X | 32 X |
37 </div> | 33 </div> |
38 </body> | 34 </body> |
39 </html> | 35 </html> |
OLD | NEW |