| <!DOCTYPE html> |
| <html> |
| <head> |
| |
| <meta name="viewport" content="width=800"> |
| <style> |
| html { font-size: 16px; } |
| body { width: 800px; overflow-y: hidden; } |
| </style> |
| |
| <script> |
| if (window.internals) { |
| window.internals.settings.setTextAutosizingEnabled(true); |
| window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480); |
| } else if (window.console && console.warn) { |
| console.warn("This test depends on the Text Autosizing setting being true, so 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."); |
| } |
| </script> |
| |
| </head> |
| <body> |
| |
| <div style="width: 400px"> |
| <div> |
| This text should be autosized to just 20px computed font size (16 * 400/320), since the width of the least common ancestor of the cluster's text descendants is used for multiplier calculation. |
| </div> |
| |
| <div> |
| This text should be similarly autosized to 20px. |
| </div> |
| </div> |
| </body> |
| </html> |
| |