OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 @font-face { | 4 @font-face { |
5 font-family: myfont; | 5 font-family: myfont; |
6 src: local(Courier), local('Courier New'); /* Use monospace font */ | 6 src: local(Courier), local('Courier New'); /* Use monospace font */ |
7 unicode-range: U+0041; /* 'A' */ | 7 unicode-range: U+0041; /* 'A' */ |
8 } | 8 } |
9 | 9 |
10 .test { | 10 .test { |
(...skipping 12 matching lines...) Expand all Loading... |
23 </style> | 23 </style> |
24 <script src="../js/resources/js-test-pre.js"></script> | 24 <script src="../js/resources/js-test-pre.js"></script> |
25 </head> | 25 </head> |
26 <body> | 26 <body> |
27 <div id="test" class="test">m</div> | 27 <div id="test" class="test">m</div> |
28 <div id="sans" class="sans">m</div> | 28 <div id="sans" class="sans">m</div> |
29 <script> | 29 <script> |
30 description('@font-face should not affect width of characters outside of its uni
code-range'); | 30 description('@font-face should not affect width of characters outside of its uni
code-range'); |
31 shouldBe("document.getElementById('test').offsetWidth", "document.getElementById
('sans').offsetWidth"); | 31 shouldBe("document.getElementById('test').offsetWidth", "document.getElementById
('sans').offsetWidth"); |
32 </script> | 32 </script> |
33 <script src="../js/resources/js-test-post.js"></script> | |
34 </body> | 33 </body> |
35 </html> | 34 </html> |
OLD | NEW |