OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <link rel="stylesheet" href="resources/detached-style.css" type="text/css" media
="screen"> | 3 <link rel="stylesheet" href="resources/detached-style.css" type="text/css" media
="screen"> |
4 <style>* { }</style> | 4 <style>* { }</style> |
5 <script src="../../js/resources/js-test-pre.js"></script> | 5 <script src="../../js/resources/js-test-pre.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <p><a href="https://bugs.webkit.org/show_bug.cgi?id=45205">Bug 45205</a>: | 8 <p><a href="https://bugs.webkit.org/show_bug.cgi?id=45205">Bug 45205</a>: |
9 Test that <link> elements only have stylesheets when in document.</p> | 9 Test that <link> elements only have stylesheets when in document.</p> |
10 <div id="console"></div> | 10 <div id="console"></div> |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 shouldBe('sheet.ownerNode', 'null') | 45 shouldBe('sheet.ownerNode', 'null') |
46 shouldBe('sheet.cssRules[0].cssText[0]', '"*"') | 46 shouldBe('sheet.cssRules[0].cssText[0]', '"*"') |
47 | 47 |
48 debug("Re-adding <style>..."); | 48 debug("Re-adding <style>..."); |
49 head.appendChild(style); | 49 head.appendChild(style); |
50 shouldBe('sheet.ownerNode', 'null') | 50 shouldBe('sheet.ownerNode', 'null') |
51 shouldBe('style.sheet === sheet', 'false') | 51 shouldBe('style.sheet === sheet', 'false') |
52 shouldBe('style.sheet.ownerNode', 'style') | 52 shouldBe('style.sheet.ownerNode', 'style') |
53 | 53 |
54 </script> | 54 </script> |
55 <script src="../../js/resources/js-test-post.js"></script> | |
56 </body> | 55 </body> |
57 </html> | 56 </html> |
OLD | NEW |