| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../../resources/js-test-pre.js"></script> |
| input:default { background: lime; } |
| button:default { background: lime; } |
| input { background: red; } |
| button { background: red; } |
| <input name="victim" type="submit" value="Submit" /> |
| description("This test performs a simple check for the :default CSS selector."); |
| 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="../../resources/js-test-post.js"></script> |