| Index: third_party/WebKit/LayoutTests/fast/dom/StyleSheet/detached-parent-rule-without-wrapper.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/detached-parent-rule-without-wrapper.html b/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/detached-parent-rule-without-wrapper.html
|
| index a4eb7fd57e112ed7d87591c586d620386ce19e99..54a900fc4a5dc70b136d7729664f87d415bcdf36 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/detached-parent-rule-without-wrapper.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/detached-parent-rule-without-wrapper.html
|
| @@ -8,13 +8,15 @@
|
| <body>
|
| <div id="test"></div>
|
| <script>
|
| -description("Test that detached CSSOM subtrees keeps a reference to CSS stylesheets lacking wrappers.");
|
| +description("Test that CSS stylesheets lacking wrappers are pruned from detached CSSOM subtrees. " +
|
| +"This is surprising behavior, but it's a very rare situation, and the behavior actually matches " +
|
| +"what both WebKit and Gecko do for DOM nodes in detached subtrees.");
|
|
|
| shouldBe('getMatchedCSSRules(document.getElementById("test")).length', '1');
|
| rule = getMatchedCSSRules(document.getElementById("test")).item(0);
|
| debug("Removing <style>...");
|
| document.head.removeChild(document.getElementsByTagName("style")[0]);
|
| -shouldNotBe("rule.parentRule", "null");
|
| +shouldBe("rule.parentRule", "null");
|
| shouldBe('getMatchedCSSRules(document.getElementById("test"))', 'null');
|
| </script>
|
| </body>
|
|
|