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'); | |
7 document.body.offsetLeft; | 6 document.body.offsetLeft; |
8 target.parentNode.removeChild(target); | 7 document.styleSheets[0].cssRules[0].style.fontFamily = "f2"; |
9 } | 8 } |
10 </script> | 9 </script> |
11 </head> | 10 </head> |
12 <body onload="runTest()"> | 11 <body onload="runTest()"> |
13 <style id="target"> | 12 <style id="target"> |
14 @font-face { | 13 @font-face { |
15 font-family: f1; | 14 font-family: f1; |
16 font-weight: 100; | 15 font-weight: 100; |
17 src: url(../../resources/Ahem.ttf); | 16 src: url(../../resources/Ahem.ttf); |
18 } | 17 } |
19 </style> | 18 </style> |
20 <!-- crbug.com/305885: when removing stylesheets, consider @font-face rules. --> | 19 <!-- crbug.com/305885: when removing stylesheets, consider @font-face rules. --> |
21 <span style="font-family: f1; font-weight: 100">A</span> | 20 <span style="font-family: f1; font-weight: 100">A</span> |
22 </body> | 21 </body> |
23 </html> | 22 </html> |
OLD | NEW |