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