5 <meta name="viewport" content="width=800">
7 html { font-size: 16px; }
8 body { width: 800px; margin: 0; overflow-y: hidden; }
13 if (window.internals) {
14 window.internals.settings.setTextAutosizingEnabled(true);
15 window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480);
16 } else if (window.console && console.warn) {
17 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.");
25 This text should not be autosized, as <pre> elements have white-space:pre which cannot be wrapped.<br>
26 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
29 <div style="white-space: nowrap">
30 This text should not be autosized, as it has white-space:nowrap which cannot be wrapped.<br>
31 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
34 <pre style="white-space: pre-wrap">
35 This text should be autosized to 40px computed font-size (16 * 800/320) since it has white-space:pre-wrap which allows text wrapping (even though it doesn't collapse white space).
39 This text should be autosized to 40px computed font-size (16 * 800/320).