| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
| 5 <style> | 5 <style> |
| 6 input { background: lime; } | 6 input { background: lime; } |
| 7 button { background: lime; } | 7 button { background: lime; } |
| 8 :default { background: red; } | 8 :default { background: red; } |
| 9 </style> | 9 </style> |
| 10 </head> | 10 </head> |
| 11 <body> | 11 <body> |
| 12 <p id="description"></p> | 12 <p id="description"></p> |
| 13 <form method="get"> | 13 <form method="get"> |
| 14 <input name="victim" type="button" value="Not a submit" /> | 14 <input name="victim" type="button" value="Not a submit" /> |
| 15 <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> | 16 <button name="victim" type="button"/>Not a submit</button> |
| 17 </form> | 17 </form> |
| 18 <div id="console"></div> | 18 <div id="console"></div> |
| 19 <script> | 19 <script> |
| 20 description("This test performs a simple check for the :default CSS selector: it
shouldn't be applied."); | 20 description("This test performs a simple check for the :default CSS selector: it
shouldn't be applied."); |
| 21 | 21 |
| 22 v = document.getElementsByName("victim"); | 22 v = document.getElementsByName("victim"); |
| 23 for (i = 0; i < v.length; i++) | 23 for (i = 0; i < v.length; i++) |
| 24 shouldBe("document.defaultView.getComputedStyle(v[i], null).getPropertyValue
('background-color')", "'rgb(0, 255, 0)'"); | 24 shouldBe("document.defaultView.getComputedStyle(v[i], null).getPropertyValue
('background-color')", "'rgb(0, 255, 0)'"); |
| 25 </script> | 25 </script> |
| 26 <script src="../js/resources/js-test-post.js"></script> | |
| 27 </body> | 26 </body> |
| 28 </html> | 27 </html> |
| OLD | NEW |