| <title><input> and "readonly"</title> |
| input:read-only { background:lime } |
| <link rel="help" href="http://whatwg.org/specs/web-forms/current-work/#readonly"> |
| <link rel="help" href="http://whatwg.org/specs/web-forms/current-work/#relation"> |
| <script language="JavaScript" type="text/javascript"> |
| document.getElementById("console").innerHTML += "<li>"+message+"</li>"; |
| var i = document.getElementById("victim"); |
| if (document.defaultView.getComputedStyle(i, null).getPropertyValue('background-color') == "rgb(0, 255, 0)") |
| <p>This test checks for :read-only right behavior. Fails if FAILURE is shown below.</p> |
| <p><input id="victim" readonly/></p> |