1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../resources/js-test.js"></script>
6 input:default { background: lime; }
7 button:default { background: lime; }
8 input { background: red; }
9 button { background: red; }
13 <p id=
"description"></p>
15 <input name=
"victim" type=
"submit" value=
"Submit" />
17 <div id=
"console"></div>
19 description("This test performs a simple check for the :default CSS selector.");
21 v
= document
.getElementsByName("victim");
22 for (i
= 0; i
< v
.length
; i
++)
23 shouldBe("document.defaultView.getComputedStyle(v[i], null).getPropertyValue('background-color')", "'rgb(0, 255, 0)'");