Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / style-display-none.html
blob284fd1b36e3fb16247b62cf0df0cc22471b6bb0e
1 <html>
2 <body>
3 <p>This tests to see if 'style.display' for an element can be set dynamically. See bug 820947. </p>
5 <script>
6 if (window.testRunner)
7 testRunner.dumpAsText();
9 document.writeln("<div id=\"result\"> \r\n This test: FAILED </div>\r\n");
10 document.writeln("<div id=\"announce:Top\">\r\n This text should be hidden </div>\r\n");
12 var announceTop = document.getElementById("announce:Top");
13 announceTop.style.display = "none";
14 if ( announceTop.style.display == "none" ) {
15 document.getElementById("result").innerHTML=' This test: PASSED!'
18 </script>
20 </body>
21 </html>