| OLD | NEW |
| 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"> pppp </div> | 26 <div style="font-size: 13px"> pppp </div> |
| 27 <div style="font-size: 14px"> pppp </div> | 27 <div style="font-size: 14px"> pppp </div> |
| 28 <div style="font-size: 15px"> pppp </div> | 28 <div style="font-size: 15px"> pppp </div> |
| 29 <div style="font-size: 16px"> pppp </div> | 29 <div style="font-size: 16px"> pppp </div> |
| 30 <div style="font-size: 17px"> pppp </div> | 30 <div style="font-size: 17px"> pppp </div> |
| 31 <div style="font-size: 18px"> pppp </div> | 31 <div style="font-size: 18px"> pppp </div> |
| 32 </body> | 32 </body> |
| 33 </html> | 33 </html> |
| OLD | NEW |