1 <p>Layout test for
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=22096">bug
22096</a></p>
3 <li>scrolldelay attribute of marquee sets -webkit-marquee-speed CSS property, but it sets unit-less number.
4 <li>The number is treated by WebKit as quirks mode value and converts it to miliseconds for -webkit-marquee-speed (milisecond is proper unit for scrolldelay).
6 <p>This simple test case checks if unit-less value for -webkit-marquee-speed in quirks mode is treated as miliseconds which is required for correctly working scrolldelay.
</p>
7 <marquee id=
"mar" style=
"-webkit-marquee-speed:10"></marquee>
9 <script type=
"text/javascript">
10 var mar
= document
.getElementById("mar");
11 var p
= document
.getElementById("p");
12 if (mar
.style
.getPropertyValue("-webkit-marquee-speed") == "10s") p
.innerHTML
= '<b style="color:red">FAIL</b>'; else p
.innerHTML
= '<b style="color:green">PASS</b>';
13 if (window
.testRunner
) testRunner
.dumpAsText();