Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / fast / css / pseudo-valid-005.html
blob21bc44c633090700cd5c080b1f7d450eeaac6f2c
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <link rel="stylesheet" href="../js/resources/js-test-style.css">
5 <script src="../js/resources/js-test-pre.js"></script>
6 <style>
7 :valid { background: red; }
8 :invalid { background: red; }
9 fieldset { background: lime; }
10 object { background: lime; }
11 </style>
12 </head>
13 <body>
14 <p id="description"></p>
15 <form method="get">
16 <fieldset name="victim"></fieldset>
17 <object name="victim"></object>
18 </form>
19 <div id="console"></div>
20 <script>
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;
28 </script>
29 <script src="../js/resources/js-test-post.js"></script>
30 </body>
31 </html>