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