Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / getComputedStyle / computed-style-display-none.html
blob310b29ab585c9ae34bb6029760b7394caa4c61ad
1 <script>
2 function test() {
3 if (window.testRunner)
4 testRunner.dumpAsText();
5 var style = document.defaultView.getComputedStyle(document.getElementById("test"), "");
6 var result = document.getElementById("result");
7 if (style.display == "none")
8 result.appendChild(document.createTextNode("Test succeeded! The value of display is 'none'."));
9 else
10 result.appendChild(document.createTextNode("Test failed. The value of display is '" + style.display + "'."));
12 </script>
13 <body onload="test()">
14 <div id="test" style="display: none"></div>
15 <div id="result"></div>
16 </body>