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 <style> | 6 <style> |
7 @font-face { | 7 @font-face { |
8 font-family: 'Open Sans'; | 8 font-family: 'Open Sans'; |
9 font-style: normal; | 9 font-style: normal; |
10 font-weight: 400; | 10 font-weight: 400; |
11 src: url('../../../resources/opensans/OpenSans-Regular.woff') fo
rmat('woff'); | 11 src: url('../../../resources/opensans/OpenSans-Regular.woff') fo
rmat('woff'); |
12 } | 12 } |
13 section > div > div { | 13 section > div > div { |
14 font-family: 'Open Sans'; | 14 font-family: 'Open Sans', 'Segoe UI'; |
15 } | 15 } |
16 </style> | 16 </style> |
17 <script src="resources/text-scaling.js"></script> | 17 <script src="resources/text-scaling.js"></script> |
18 <script src="../../../resources/js-test.js"></script> | 18 <script src="../../../resources/js-test.js"></script> |
19 </head> | 19 </head> |
20 <body> | 20 <body> |
21 <section> | 21 <section> |
22 <h1>Font Size Scaling (WebFont, Latin)</h1> | 22 <h1>Font Size Scaling (WebFont, Latin)</h1> |
23 <p> | 23 <p> |
24 Size of the text should scale smoothly. | 24 Size of the text should scale smoothly. |
(...skipping 15 matching lines...) Expand all Loading... |
40 // different across platforms and would require platform | 40 // different across platforms and would require platform |
41 // specific baselines. | 41 // specific baselines. |
42 if (window.testRunner) | 42 if (window.testRunner) |
43 document.getElementById('test').style.display = 'none'; | 43 document.getElementById('test').style.display = 'none'; |
44 } else { | 44 } else { |
45 testFailed('Size of text does not scale smoothly, reported width
s highlighted in red do not match reference row.'); | 45 testFailed('Size of text does not scale smoothly, reported width
s highlighted in red do not match reference row.'); |
46 } | 46 } |
47 </script> | 47 </script> |
48 </body> | 48 </body> |
49 </html> | 49 </html> |
OLD | NEW |