| <!doctype html> |
| <html> |
| <head> |
| <script> |
| function runTest() { |
| var newStyle = document.createElement('style'); |
| newStyle.innerHTML = "@font-face { font-family: f1; font-weight: 100; src: local('Courier New'); }"; |
| document.body.offsetLeft; |
| document.body.insertBefore(newStyle, document.getElementById('target')); |
| } |
| </script> |
| </head> |
| <body onload="runTest()"> |
| <style id="target"> |
| @font-face { |
| font-family: f1; |
| font-weight: 100; |
| src: url(../../resources/Ahem.ttf); |
| } |
| </style> |
| <span style="font-family: f1; font-weight: 100">A</span> |
| </body> |
| </html> |