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

Side by Side Diff: LayoutTests/fast/text-autosizing/unwrappable-inlines.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 21 matching lines...) Expand all
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698