5 /* Use a fake font family for all of the text that we draw.
6 The setTextSubpixelPositioning() call changes a global text style
7 setting. It gets reset after we're dumped, but if we run first, our
8 style would be cached and would affect other tests, and if we run after
9 another test, we'd use its cached style and subpixel positioning won't be
12 font-family: SubpixelPositioning;
15 font-family: SubpixelPositioningAhem;
16 overflow: hidden; /* the only difference between the test the the ref html */
17 border: solid thin blue;
25 if (window
.testRunner
&& window
.testRunner
.setTextSubpixelPositioning
)
26 window
.testRunner
.setTextSubpixelPositioning(true);
28 window
.internals
.setPageScaleFactor(1.7);
32 Tests if the bottom of the text is truncated when the page is scaled by a fractional factor.
33 If success, the text in the
"overflow: hidden" div (the test case) should be displayed
34 the same as in a normal div (the ref html).
35 'p' is the character in ahem font with only the descent part.
37 <div style=
"font-size: 13px"> pppp
</div>
38 <div style=
"font-size: 14px"> pppp
</div>
39 <div style=
"font-size: 15px"> pppp
</div>
40 <div style=
"font-size: 16px"> pppp
</div>
41 <div style=
"font-size: 17px"> pppp
</div>
42 <div style=
"font-size: 18px"> pppp
</div>