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-expected.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 </head> 12 </head>
13 <body> 13 <body>
14 14
15 <pre> 15 <pre>
16 This text should not be autosized, as &lt;pre&gt; elements have white-space: pre which cannot be wrapped.<br> 16 This text should not be autosized, as &lt;pre&gt; elements have white-space: pre which cannot be wrapped.<br>
17 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tem por incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis n ostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Dui s aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fug iat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culp a qui officia deserunt mollit anim id est laborum. 17 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tem por incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis n ostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Dui s aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fug iat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culp a qui officia deserunt mollit anim id est laborum.
18 </pre> 18 </pre>
19 19
20 <div style="white-space: nowrap"> 20 <div style="white-space: nowrap">
21 This text should not be autosized, as it has white-space:nowrap which cannot be wrapped.<br> 21 This text should not be autosized, as it has white-space:nowrap which cannot be wrapped.<br>
22 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tem por incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis n ostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Dui s aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fug iat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culp a qui officia deserunt mollit anim id est laborum. 22 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tem por incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis n ostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Dui s aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fug iat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culp a qui officia deserunt mollit anim id est laborum.
23 </div> 23 </div>
24 24
25 <pre style="white-space: pre-wrap; font-size: 2.5rem"> 25 <pre style="white-space: pre-wrap; font-size: 2.5rem">
26 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). 26 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).
27 </pre> 27 </pre>
28 28
29 <div style="font-size: 2.5rem"> 29 <div style="font-size: 2.5rem">
30 This text should be autosized to 40px computed font-size (16 * 800/320). 30 This text should be autosized to 40px computed font-size (16 * 800/320).
31 </div> 31 </div>
32 32
33 </body> 33 </body>
34 </html> 34 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/text-autosizing/unwrappable-blocks.html ('k') | LayoutTests/fast/text-autosizing/unwrappable-inlines.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698