OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 | 4 |
5 <meta name="viewport" content="width=800"> | 5 <meta name="viewport" content="width=800"> |
6 <style> | 6 <style> |
7 html { font-size: 16px; } | 7 html { font-size: 16px; } |
8 body { width: 800px; margin: 0; } | 8 body { width: 800px; margin: 0; overflow-y: hidden; } |
9 pre { margin: 0; } | 9 pre { margin: 0; } |
10 </style> | 10 </style> |
11 | 11 |
12 <script> | 12 <script> |
13 if (window.internals) { | 13 if (window.internals) { |
14 window.internals.settings.setTextAutosizingEnabled(true); | 14 window.internals.settings.setTextAutosizingEnabled(true); |
15 window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480); | 15 window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480); |
16 } else if (window.console && console.warn) { | 16 } else if (window.console && console.warn) { |
17 console.warn("This test depends on the Text Autosizing setting being true, s
o run it in DumpRenderTree, or manually enable Text Autosizing, and either use a
mobile device with 320px device-width (like Nexus S or iPhone), or define HACK_
FORCE_TEXT_AUTOSIZING_ON_DESKTOP."); | 17 console.warn("This test depends on the Text Autosizing setting being true, s
o run it in DumpRenderTree, or manually enable Text Autosizing, and either use a
mobile device with 320px device-width (like Nexus S or iPhone), or define HACK_
FORCE_TEXT_AUTOSIZING_ON_DESKTOP."); |
18 } | 18 } |
(...skipping 21 matching lines...) Expand all Loading... |
40 </div> | 40 </div> |
41 | 41 |
42 <div> | 42 <div> |
43 <span> | 43 <span> |
44 This text should be autosized to 40px computed font-size (16 * 800/320). | 44 This text should be autosized to 40px computed font-size (16 * 800/320). |
45 </span> | 45 </span> |
46 </div> | 46 </div> |
47 | 47 |
48 </body> | 48 </body> |
49 </html> | 49 </html> |
OLD | NEW |