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

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

Issue 11859014: Merge 138111 (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"> 14 <div style="width: 400px; float: left">
15 <div style="width: 800px; float: left; font-size: 2.5rem"> 15 <div style="width: 800px; float: left; font-size: 2.5rem">
16 This text should be autosized to 40px computed font size (16 * 800/320), since the float:left causes this to be a new cluster, and it is 800px wide.<br> 16 This text should be autosized to 40px computed font size (16 * 800/320), since the float:left causes this to be a new cluster, and it is 800px wide.<br>
17 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 17 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
18 </div> 18 </div>
19 19
20 <div style="width: 800px; font-size: 1.25rem"> 20 <div style="width: 600px; font-size: 1.875rem">
21 This text should be autosized to just 20px computed font-size (16 * 400/ 320), since despite its width:800px it is part of the 400px wide root cluster.<b r> 21 This text should be autosized to 30px computed font-size (16 * 600/320), since its width:600px makes it wider than the lowest common ancestor of its enc losing cluster, hence it will itself become a cluster.<br>
22 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 22 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
23 </div> 23 </div>
24 24
25 <div style="font-size: 1.25rem"> 25 <div style="font-size: 1.25rem">
26 This text should similarly be autosized to 20px.<br> 26 This text should be autosized to 20px computed font-size (16 * 400 / 320 ), since it's not an autosizing cluster itself and its parent element is the enc losing autosizing cluster which is 400px wide.<br>
27 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 27 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
28 </div> 28 </div>
29 </div> 29 </div>
30 30
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/text-autosizing/cluster-wide-in-narrow.html ('k') | LayoutTests/fast/text-autosizing/wide-child.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698