Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: LayoutTests/fast/text-autosizing/unwrappable-blocks.html

Issue 12310107: Merge 143356 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 15 matching lines...) Expand all
34 <pre style="white-space: pre-wrap"> 34 <pre style="white-space: pre-wrap">
35 This text should be autosized to 40px computed font-size (16 * 800/320) sinc e it has white-space:pre-wrap which allows text wrapping (even though it doesn't collapse white space). 35 This text should be autosized to 40px computed font-size (16 * 800/320) sinc e it has white-space:pre-wrap which allows text wrapping (even though it doesn't collapse white space).
36 </pre> 36 </pre>
37 37
38 <div> 38 <div>
39 This text should be autosized to 40px computed font-size (16 * 800/320). 39 This text should be autosized to 40px computed font-size (16 * 800/320).
40 </div> 40 </div>
41 41
42 </body> 42 </body>
43 </html> 43 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698