| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>CSS Test: :indeterminate and input type=radio</title> | 4 <title>CSS Test: :indeterminate and input type=radio</title> |
| 5 <style type="text/css"> | 5 <style type="text/css"> |
| 6 div | 6 div |
| 7 { | 7 { |
| 8 color: green; | 8 color: green; |
| 9 } | 9 } |
| 10 input:indeterminate + #test | 10 input:indeterminate + #test |
| 11 { | 11 { |
| 12 color: red; | 12 color: red; |
| 13 } | 13 } |
| 14 </style> | 14 </style> |
| 15 </head> | 15 </head> |
| 16 <body onload="mytest()"> | 16 <body onload="mytest()"> |
| 17 <p>The test passes if the Filler Text below is green.</p> | 17 <p>The test passes if the Filler Text below is green.</p> |
| 18 <input type="radio" /> | 18 <input type="radio" checked /> |
| 19 <div id="test">Filler Text</div> | 19 <div id="test">Filler Text</div> |
| 20 <div id="testresult" style="color: blue">Running</div> | 20 <div id="testresult" style="color: blue">Running</div> |
| 21 <script type="text/javascript"> | 21 <script type="text/javascript"> |
| 22 | 22 |
| 23 if (window.testRunner) | 23 if (window.testRunner) |
| 24 testRunner.dumpAsText(); | 24 testRunner.dumpAsText(); |
| 25 | 25 |
| 26 function mytest() | 26 function mytest() |
| 27 { | 27 { |
| 28 try | 28 try |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 catch(e){} | 60 catch(e){} |
| 61 | 61 |
| 62 document.getElementById("testresult").innerHTML = "Fail"; | 62 document.getElementById("testresult").innerHTML = "Fail"; |
| 63 | 63 |
| 64 } | 64 } |
| 65 </script> | 65 </script> |
| 66 | 66 |
| 67 | 67 |
| 68 </body> | 68 </body> |
| 69 </html> | 69 </html> |
| OLD | NEW |