blob: 5bf083383b2057b4280ef7044cb7eb8490906ff0 [file] [log] [blame]
bfulgham@webkit.org98a0c272009-01-13 00:22:54 +00001<p>Layout test for <a href="https://bugs.webkit.org/show_bug.cgi?id=22096">bug 22096</a></p>
2<ol>
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).
5</ol>
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>
8<p id="p"></p>
9<script type="text/javascript">
10var mar = document.getElementById("mar");
11var p = document.getElementById("p");
12if (mar.style.getPropertyValue("-webkit-marquee-speed") == "10s") p.innerHTML = '<b style="color:red">FAIL</b>'; else p.innerHTML = '<b style="color:green">PASS</b>';
13if (window.layoutTestController) layoutTestController.dumpAsText();
14</script>