| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../js/resources/js-test-pre.js"></script> |
| input { background: lime; } |
| button { background: lime; } |
| :default { background: red; } |
| <input name="victim" type="button" value="Not a submit" /> |
| <input name="victim" type="button" value="Not a submit"/> |
| <button name="victim" type="button"/>Not a submit</button> |
| description("This test performs a simple check for the :default CSS selector: it shouldn't be applied."); |
| v = document.getElementsByName("victim"); |
| for (i = 0; i < v.length; i++) |
| shouldBe("document.defaultView.getComputedStyle(v[i], null).getPropertyValue('background-color')", "'rgb(0, 255, 0)'"); |
| <script src="../js/resources/js-test-post.js"></script> |