3 <title><input
> and
"readonly"</title>
5 input:read-only { background:lime }
6 input { background:red }
8 <link rel=
"help" href=
"http://whatwg.org/specs/web-forms/current-work/#readonly">
9 <link rel=
"help" href=
"http://whatwg.org/specs/web-forms/current-work/#relation">
10 <script language=
"JavaScript" type=
"text/javascript">
11 function log(message
) {
12 document
.getElementById("console").innerHTML
+= "<li>"+message
+"</li>";
16 if (window
.testRunner
)
17 testRunner
.dumpAsText();
19 var i
= document
.getElementById("victim");
20 if (document
.defaultView
.getComputedStyle(i
, null).getPropertyValue('background-color') == "rgb(0, 255, 0)")
27 <body onload=
"test()">
28 <p>This test checks for :read-only right behavior. Fails if FAILURE is shown below.
</p>
29 <p><input id=
"victim" readonly
/></p>
31 <ol id=
"console"></ol>