| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style id="sheet"> | 2 <style id="sheet"> |
| 3 @keyframes test { to { } } | 3 @keyframes test { to { } } |
| 4 </style> | 4 </style> |
| 5 <script src="../resources/testharness.js"></script> | 5 <script src="../../resources/testharness.js"></script> |
| 6 <script src="../resources/testharnessreport.js"></script> | 6 <script src="../../resources/testharnessreport.js"></script> |
| 7 <script> | 7 <script> |
| 8 test(() => { | 8 test(() => { |
| 9 var keyframeRule = document.styleSheets[0].cssRules[0].cssRules[0]; | 9 var keyframeRule = document.styleSheets[0].cssRules[0].cssRules[0]; |
| 10 sheet.remove(); | 10 sheet.remove(); |
| 11 gc(); | 11 gc(); |
| 12 keyframeRule.style.left = '0px'; | 12 keyframeRule.style.left = '0px'; |
| 13 }, "Don't crash when mutating @keyframes rules that have been detached from the
document."); | 13 }, "Don't crash when mutating @keyframes rules that have been detached from the
document."); |
| 14 </script> | 14 </script> |
| OLD | NEW |