| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script> | 4 <script> |
| 5 function runTest() { | 5 function runTest() { |
| 6 var target = document.getElementById('target'); | 6 var newStyle = document.createElement('style'); |
| 7 newStyle.innerHTML = "@font-face { font-family: f1; font-weight: 100; src: l
ocal('Courier New'); }"; |
| 7 document.body.offsetLeft; | 8 document.body.offsetLeft; |
| 8 target.parentNode.removeChild(target); | 9 document.body.insertBefore(newStyle, document.getElementById('target')); |
| 9 } | 10 } |
| 10 </script> | 11 </script> |
| 11 </head> | 12 </head> |
| 12 <body onload="runTest()"> | 13 <body onload="runTest()"> |
| 13 <style id="target"> | 14 <style id="target"> |
| 14 @font-face { | 15 @font-face { |
| 15 font-family: f1; | 16 font-family: f1; |
| 16 font-weight: 100; | 17 font-weight: 100; |
| 17 src: url(../../resources/Ahem.ttf); | 18 src: url(../../resources/Ahem.ttf); |
| 18 } | 19 } |
| 19 </style> | 20 </style> |
| 20 <!-- crbug.com/305885: when removing stylesheets, consider @font-face rules. --> | |
| 21 <span style="font-family: f1; font-weight: 100">A</span> | 21 <span style="font-family: f1; font-weight: 100">A</span> |
| 22 </body> | 22 </body> |
| 23 </html> | 23 </html> |
| OLD | NEW |