3 <script src="../../../resources/js-test.js"></script>
7 window.jsTestIsAsync = true;
8 description("Test that CSS stylesheets don't lose custom properties on GC when only reachable through child rules.");
12 var sheet = document.implementation.createCSSStyleSheet("title", "screen");
14 sheet.insertRule("div { color:black }", 0);
15 rule = sheet.rules[0];
19 setTimeout(function() {
21 shouldBe('rule.parentStyleSheet.foo', '"0"');
26 <foo id="mystyle" style="display:none">.div { color: white; }</foo>