Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / css / webkit-text-display-none.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body style="display:none">
7 <script type="text/javascript">
8 description("This test checks that setting display to none on the body element does not change -webkit-text.");
9
10 document.body.style.color = "green";
11
12 var d = document.createElement("div");
13 d.style.color = "-webkit-text";
14 document.documentElement.appendChild(d);
15
16 shouldBe("getComputedStyle(d).getPropertyValue('color')", "'rgb(0, 128, 0)'");
17 document.body.style.display = "block";
18 </script>
19 </body>
20 </html>