<!DOCTYPE html>
<script src="../../resources/js-test.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>