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

Side by Side Diff: LayoutTests/fast/text-autosizing/cluster-narrow-in-wide-expected.html

Issue 11864024: Merge 139435 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 11 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; overflow-y: hidden; } 8 body { width: 800px; margin: 0; overflow-y: hidden; }
9 </style> 9 </style>
10 10
11 </head> 11 </head>
12 <body> 12 <body>
13 13
14 <div style="width: 400px; float: left; font-size: 1.25rem"> 14 <div style="width: 600px; float: left; font-size: 1.875rem">
15 This text should be autosized to just 20px computed font size (16 * 400/320) , since the float:left causes this to be a new cluster, and it is only 400px wid e. 15 This text should be autosized to just 30px computed font size (16 * 600/320) , since the float:left causes this to be a new cluster, and it is only 600px wid e.
16 </div> 16 </div>
17 17
18 <div style="width: 320px; font-size: 2.5rem"> 18 <div style="width: 320px">
19 This text should be autosized to 40px computed font-size (16 * 800/320), sin ce despite its width:320px it is part of the 800px wide root cluster. 19 This text should not be autosized, since because of its width:320px it becom es a separate cluster.<br>
20 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.
21 </div>
22
23 <div style="width: 600px; font-size: 2.5rem">
24 This text should be autosized to 40px computed font size (16 * 800/320), sin ce it's a part of the root cluster.<br>
25 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.
20 </div> 26 </div>
21 27
22 <div style="font-size: 2.5rem"> 28 <div style="font-size: 2.5rem">
23 This text should similarly be autosized to 40px.<br> 29 This text should similarly be autosized to 40px.<br>
24 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. 30 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.
25 </div> 31 </div>
26 32
27 </body> 33 </body>
28 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698