| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../../resources/js-test.js"></script> | |
| 4 </head> | |
| 5 <body style="display:none"> | |
| 6 <script type="text/javascript"> | |
| 7 description("This test checks that setting display to none on the body element d
oes not change -webkit-text."); | |
| 8 | |
| 9 document.body.style.color = "green"; | |
| 10 | |
| 11 var d = document.createElement("div"); | |
| 12 d.style.color = "-webkit-text"; | |
| 13 document.documentElement.appendChild(d); | |
| 14 | |
| 15 shouldBe("getComputedStyle(d).getPropertyValue('color')", "'rgb(0, 128, 0)'"); | |
| 16 document.body.style.display = "block"; | |
| 17 </script> | |
| 18 </body> | |
| 19 </html> | |
| OLD | NEW |