OLD | NEW |
1 <!DOCTYPE> | 1 <!DOCTYPE> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
5 <link rel="stylesheet" type="text/css" href="resources/text-scaling.css"
> | 5 <link rel="stylesheet" type="text/css" href="resources/text-scaling.css"
> |
6 <script src="resources/text-scaling.js"></script> | 6 <script src="resources/text-scaling.js"></script> |
7 </head> | 7 </head> |
8 <body> | 8 <body style="overflow: hidden;"> |
9 <section> | 9 <section> |
10 <h1>Font Size Scaling Pixel Test</h1> | 10 <h1>Font Size Scaling Pixel Test</h1> |
11 <p> | 11 <p> |
12 Size of the text should scale smoothly. | 12 Size of the text should scale smoothly. |
13 Reported width should be within 0.01px of that of the highlighte
d reference row. | 13 Reported width should be within 0.01px of that of the highlighte
d reference row. |
14 </p> | 14 </p> |
15 <div id="test"></div> | 15 <div id="test"></div> |
16 </section> | 16 </section> |
17 <script> | 17 <script> |
18 if (window.testRunner && window.testRunner.setTextSubpixelPositionin
g) | 18 if (window.testRunner && window.testRunner.setTextSubpixelPositionin
g) |
19 window.testRunner.setTextSubpixelPositioning(true); | 19 window.testRunner.setTextSubpixelPositioning(true); |
20 | 20 |
21 var PANGRAM = 'Amazingly few discotheques provide jukeboxes.'; | 21 var PANGRAM = 'Amazingly few discotheques provide jukeboxes.'; |
22 runTest(document.getElementById('test'), PANGRAM); | 22 runTest(document.getElementById('test'), PANGRAM); |
23 </script> | 23 </script> |
24 </body> | 24 </body> |
25 </html> | 25 </html> |
OLD | NEW |