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

Side by Side Diff: LayoutTests/fast/text-autosizing/clusters-sufficient-text-except-in-root-expected.html

Issue 25512005: Enable experimental support for sub-pixel font scaling (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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 | Annotate | Revision Log
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 { margin: 0; overflow-y: hidden; } 8 body { margin: 0; overflow-y: hidden; }
9 </style> 9 </style>
10 10
11 </head> 11 </head>
12 <body style="width: 640px; position: relative"> 12 <body style="width: 640px; position: relative">
13 13
14 <div style="position: absolute; overflow: auto; font-size: 2rem"> 14 <div style="position: absolute; overflow: auto; font-size: 2rem">
15 This text should be autosized to 32px computed font size, but the position:a bsolute causes this to be a new cluster, so it shouldn't affect the footer.<br> 15 This text should be autosized to 32px computed font size, but the position:a bsolute causes this to be a new cluster, so it shouldn't affect the footer.<br>
16 Lorem ipsum dolor sit amet, consectetur adipisicing elit. 16 Lorem ipsum dolor sit amet, consectetur adipisicing elit.
17 </div> 17 </div>
18 18
19 <div style="margin-top: 185px; float: left; font-size: 2rem"> 19 <div style="margin-top: 185px; float: left; font-size: 2rem">
20 This text should be autosized to 32px computed font size, but the float:left causes this to be a new cluster, so it shouldn't affect the footer.<br> 20 This text should be autosized to 32px computed font size, but the float:left causes this to be a new cluster, so it shouldn't affect the footer.<br>
21 Lorem ipsum dolor sit amet, consectetur adipisicing elit. 21 Lorem ipsum dolor sit amet, consectetur adipisicing elit.
22 </div> 22 </div>
23 23
24 <table> 24 <table cellpadding="0" cellspacing="0">
25 <tr> 25 <tr>
26 <td style="font-size: 2rem"> 26 <td style="font-size: 2rem">
27 This text should be autosized to 32px computed font size, but being a table cell causes this to be a new cluster, so it shouldn't affect the footer. <br> 27 This text should be autosized to 32px computed font size, but being a table cell causes this to be a new cluster, so it shouldn't affect the footer. <br>
28 Lorem ipsum dolor sit amet, consectetur adipisicing elit. 28 Lorem ipsum dolor sit amet, consectetur adipisicing elit.
29 </td> 29 </td>
30 </tr> 30 </tr>
31 </table> 31 </table>
32 32
33 <!-- FIXME: Include vertical writing-mode example once http://webkit.org/b/96557 is fixed. --> 33 <!-- FIXME: Include vertical writing-mode example once http://webkit.org/b/96557 is fixed. -->
34 34
35 <div> 35 <div>
36 This shouldn't be autosized (computed font size should remain 16px), as all text above is in other clusters, so the root cluster doesn't contain enough text . 36 This shouldn't be autosized (computed font size should remain 16px), as all text above is in other clusters, so the root cluster doesn't contain enough text .
37 </div> 37 </div>
38 38
39 </body> 39 </body>
40 </html> 40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698