OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <link rel="stylesheet" href="../../js/resources/js-test-style.css" type="text/cs
s" title="js-test-style"> | 3 <link rel="stylesheet" href="../../js/resources/js-test-style.css" type="text/cs
s" title="js-test-style"> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p id="description"></p> | 7 <p id="description"></p> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <script> | 9 <script> |
10 description("Test that CSS stylesheets lacking wrappers are pruned from detached
CSSOM subtrees. " + | 10 description("Test that CSS stylesheets lacking wrappers are pruned from detached
CSSOM subtrees. " + |
11 "This is surprising behavior, but it's a very rare situation, and the behavior a
ctually matches " + | 11 "This is surprising behavior, but it's a very rare situation, and the behavior a
ctually matches " + |
12 "what both WebKit and Gecko do for DOM nodes in detached subtrees."); | 12 "what both WebKit and Gecko do for DOM nodes in detached subtrees."); |
13 | 13 |
14 rule = getMatchedCSSRules(document.getElementsByTagName("div")[0]).item(0); | 14 rule = getMatchedCSSRules(document.getElementsByTagName("div")[0]).item(0); |
15 document.documentElement.removeChild(document.head); | 15 document.documentElement.removeChild(document.head); |
16 shouldBe("rule.parentStyleSheet", "null"); | 16 shouldBe("rule.parentStyleSheet", "null"); |
17 | 17 |
18 var successfullyParsed = true; | 18 var successfullyParsed = true; |
19 </script> | 19 </script> |
20 <script src="../../js/resources/js-test-post.js"></script> | 20 <script src="../../js/resources/js-test-post.js"></script> |
21 </body> | 21 </body> |
22 </html> | 22 </html> |
OLD | NEW |