Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / document-stylesheets-empty-style.html
bloba532ccaace7b216942988192731bc9c7067b63df
1 <html>
2 <head>
3 <style></style>
4 </head>
5 <body>
6 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=15649">bug 15649</a>:
7 Empty STYLE elements are not reflected into the document.styleSheets object.</p>
8 <script>
9 if (window.testRunner)
10 testRunner.dumpAsText();
11 document.getElementsByTagName('head')[0].appendChild(document.createElement("style"));
12 document.write(document.styleSheets.length == 2 ? "SUCCESS" : "FAILURE: " + document.styleSheets.length + " stylesheets");
13 </script>
14 </body>
15 </html>