1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <link rel=
"stylesheet" href=
"../js/resources/js-test-style.css">
5 <script src=
"../js/resources/js-test-pre.js"></script>
7 :valid { background: red; }
8 :invalid { background: red; }
9 fieldset { background: lime; }
10 object { background: lime; }
14 <p id=
"description"></p>
16 <fieldset name=
"victim"></fieldset>
17 <object name=
"victim"></object>
19 <div id=
"console"></div>
21 description("This test performs a check for the :valid/:invalid CSS selector on elements where it shouldn't be applied.");
23 v
= document
.getElementsByName("victim");
24 for (i
= 0; i
< v
.length
; i
++)
25 shouldBe("document.defaultView.getComputedStyle(v[i], null).getPropertyValue('background-color')", "'rgb(0, 255, 0)'");
27 var successfullyParsed
= true;
29 <script src=
"../js/resources/js-test-post.js"></script>