OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <svg xmlns = 'http://www.w3.org/2000/svg' style='display:none'> | 2 <svg xmlns = 'http://www.w3.org/2000/svg' style='display:none'> |
3 <defs> | 3 <defs> |
4 <font id="Font1"> | 4 <font id="Font1"> |
5 <font-face font-family="block" /> | 5 <font-face font-family="block" /> |
6 </font> | 6 </font> |
7 </defs> | 7 </defs> |
8 </svg> | 8 </svg> |
9 | 9 |
10 <style> | 10 <style> |
(...skipping 17 matching lines...) Expand all Loading... |
28 <script src="../js/resources/js-test-pre.js"></script> | 28 <script src="../js/resources/js-test-pre.js"></script> |
29 <script> | 29 <script> |
30 description("This test ensures that the CSS 'ex' unit is treated as half the siz
e of the CSS 'em' unit when a font has no x-height information.") | 30 description("This test ensures that the CSS 'ex' unit is treated as half the siz
e of the CSS 'em' unit when a font has no x-height information.") |
31 | 31 |
32 function measureExBox() { | 32 function measureExBox() { |
33 return getComputedStyle(document.getElementById('ex')).width; | 33 return getComputedStyle(document.getElementById('ex')).width; |
34 } | 34 } |
35 | 35 |
36 shouldBe("measureExBox();", "'50px'") | 36 shouldBe("measureExBox();", "'50px'") |
37 </script> | 37 </script> |
38 <script src="../js/resources/js-test-post.js"></script> | |
OLD | NEW |