<p>Layout test for <a href="https://bugs.webkit.org/show_bug.cgi?id=22096">bug 22096</a></p>
<ol>
<li>scrolldelay attribute of marquee sets -webkit-marquee-speed CSS property, but it sets unit-less number.
<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).
</ol>
<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>
<marquee id="mar" style="-webkit-marquee-speed:10"></marquee>
<p id="p"></p>
<script type="text/javascript">
var mar = document.getElementById("mar");
var p = document.getElementById("p");
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>';
if (window.testRunner) testRunner.dumpAsText();
</script>
