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

Side by Side Diff: LayoutTests/fast/text/descent-clip-in-scaled-page-expected.html

Issue 18546003: Fix tests to avoid page scale reset when setting page scale. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use setPageScaleFactorLimits(). Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 body { 5 body {
6 font-family: SubpixelPositioning; 6 font-family: SubpixelPositioning;
7 } 7 }
8 div { 8 div {
9 font-family: SubpixelPositioningAhem; 9 font-family: SubpixelPositioningAhem;
10 border: solid thin blue; 10 border: solid thin blue;
11 } 11 }
12 </style> 12 </style>
13 <script> 13 <script>
14 if (window.testRunner && window.testRunner.setTextSubpixelPositioning) 14 if (window.testRunner && window.testRunner.setTextSubpixelPositioning)
15 window.testRunner.setTextSubpixelPositioning(true); 15 window.testRunner.setTextSubpixelPositioning(true);
16 if (window.internals) 16 if (window.eventSender)
17 window.internals.setPageScaleFactor(1.7, 0, 0); 17 window.eventSender.setPageScaleFactor(1.7, 0, 0);
18 </script> 18 </script>
19 </head> 19 </head>
20 <body> 20 <body>
21 Tests if the bottom of the text is truncated when the page is scaled by a fr actional factor. 21 Tests if the bottom of the text is truncated when the page is scaled by a fr actional factor.
22 If success, the text in the "overflow: hidden" div (the test case) should be displayed 22 If success, the text in the "overflow: hidden" div (the test case) should be displayed
23 the same as in a normal div (the ref html). 23 the same as in a normal div (the ref html).
24 'p' is the character in ahem font with only the descent part. 24 'p' is the character in ahem font with only the descent part.
25 <br><br> 25 <br><br>
26 <div style="font-size: 13px">&nbsp;pppp&nbsp;</div> 26 <div style="font-size: 13px">&nbsp;pppp&nbsp;</div>
27 <div style="font-size: 14px">&nbsp;pppp&nbsp;</div> 27 <div style="font-size: 14px">&nbsp;pppp&nbsp;</div>
28 <div style="font-size: 15px">&nbsp;pppp&nbsp;</div> 28 <div style="font-size: 15px">&nbsp;pppp&nbsp;</div>
29 <div style="font-size: 16px">&nbsp;pppp&nbsp;</div> 29 <div style="font-size: 16px">&nbsp;pppp&nbsp;</div>
30 <div style="font-size: 17px">&nbsp;pppp&nbsp;</div> 30 <div style="font-size: 17px">&nbsp;pppp&nbsp;</div>
31 <div style="font-size: 18px">&nbsp;pppp&nbsp;</div> 31 <div style="font-size: 18px">&nbsp;pppp&nbsp;</div>
32 </body> 32 </body>
33 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698