blob: 5cb467811bea1eb424a06ab4a35c3b586d5dee3f [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/js-test-pre.js"></script>
<script>
description('Setting a CSSStyleDeclaration after its element has been GCed should not crash.');
var span = document.createElement('span');
var style = span.style;
span = null;
gc();
style.cssText = 'color:red';
testPassed('Did not crash');
</script>
<script src="../../resources/js-test-post.js"></script>