| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../js/resources/js-test-pre.js"></script> |
| 6 <style type="text/css"> | 6 <style type="text/css"> |
| 7 #e { color:red; visibility: hidden;} | 7 #e { color:red; visibility: hidden;} |
| 8 </style> | 8 </style> |
| 9 </head> | 9 </head> |
| 10 <body> | 10 <body> |
| 11 <p id="e">This is the test element.</p> | 11 <p id="e">This is the test element.</p> |
| 12 <script> | 12 <script> |
| 13 | 13 |
| 14 description("This test checks to see whether setting a CSS value including !impo
rtant on an inline style property fails (as it should)."); | 14 description("This test checks to see whether setting a CSS value including !impo
rtant on an inline style property fails (as it should)."); |
| 15 | 15 |
| 16 var e = document.getElementById('e'); | 16 var e = document.getElementById('e'); |
| 17 e.style.color = "green !important"; | 17 e.style.color = "green !important"; |
| 18 | 18 |
| 19 shouldBe('window.getComputedStyle(e).color', '"rgb(255, 0, 0)"'); | 19 shouldBe('window.getComputedStyle(e).color', '"rgb(255, 0, 0)"'); |
| 20 | 20 |
| 21 </script> | 21 </script> |
| 22 <script src="../js/resources/js-test-post.js"></script> | |
| 23 </body> | 22 </body> |
| 24 </html> | 23 </html> |
| OLD | NEW |