| OLD | NEW |
| 1 <style> | 1 <style> |
| 2 @font-face { | 2 @font-face { |
| 3 font-family: webfont; | 3 font-family: webfont; |
| 4 src: url(slow-ahem-loading.cgi); | 4 src: url(slow-ahem-loading.cgi); |
| 5 } | 5 } |
| 6 </style> | 6 </style> |
| 7 <p> | 7 <p> |
| 8 This test checks that the fallback font is used for layout while a webfont is lo
ading. | 8 This test checks that the fallback font is used for layout while a webfont is lo
ading. |
| 9 </p> | 9 </p> |
| 10 Target: | 10 Target: |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 if (target.offsetWidth == reference.offsetWidth && target.offsetHeight == re
ference.offsetHeight) { | 48 if (target.offsetWidth == reference.offsetWidth && target.offsetHeight == re
ference.offsetHeight) { |
| 49 result.innerText += 'PASS: The width of target text and reference text i
s the same.\n'; | 49 result.innerText += 'PASS: The width of target text and reference text i
s the same.\n'; |
| 50 } else { | 50 } else { |
| 51 result.innerText += 'FAIL: The width of target text and reference text i
s different: ' | 51 result.innerText += 'FAIL: The width of target text and reference text i
s different: ' |
| 52 + target.offsetWidth + ' != ' + reference.offsetWidth + ' or ' + tar
get.offsetHeight + ' != ' + reference.offsetHeight + '\n'; | 52 + target.offsetWidth + ' != ' + reference.offsetWidth + ' or ' + tar
get.offsetHeight + ' != ' + reference.offsetHeight + '\n'; |
| 53 } | 53 } |
| 54 } | 54 } |
| 55 | 55 |
| 56 checkSize('arial'); | 56 checkSize('arial'); |
| 57 checkSize('serif'); | 57 checkSize('serif'); |
| 58 // FIXME: checkSize('default'); | 58 checkSize('default'); |
| 59 // FIXME: checkSize('monospace'); | 59 // FIXME: checkSize('monospace'); |
| 60 </script> | 60 </script> |
| OLD | NEW |