Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / text / descent-clip-in-scaled-page-expected.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5     body {
6         font-family: SubpixelPositioning;
7     }
8     div {
9         font-family: SubpixelPositioningAhem;
10         border: solid thin blue;
11     }
12     ::-webkit-scrollbar {
13       width: 0px;
14       height: 0px;
15     }
16 </style>
17 <script>
18     if (window.testRunner && window.testRunner.setTextSubpixelPositioning)
19         window.testRunner.setTextSubpixelPositioning(true);
20     if (window.eventSender)
21         window.eventSender.setPageScaleFactor(1.7, 0, 0);
22 </script>
23 </head>
24 <body>
25     Tests if the bottom of the text is truncated when the page is scaled by a fractional factor.
26     If success, the text in the "overflow: hidden" div (the test case) should be displayed
27     the same as in a normal div (the ref html).
28     'p' is the character in ahem font with only the descent part.
29     <br><br>
30     <div style="font-size: 13px">&nbsp;pppp&nbsp;</div>
31     <div style="font-size: 14px">&nbsp;pppp&nbsp;</div>
32     <div style="font-size: 15px">&nbsp;pppp&nbsp;</div>
33     <div style="font-size: 16px">&nbsp;pppp&nbsp;</div>
34     <div style="font-size: 17px">&nbsp;pppp&nbsp;</div>
35     <div style="font-size: 18px">&nbsp;pppp&nbsp;</div>
36 </body>
37 </html>