scrollbar-gradient-crash.html 764 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
<style type="text/css">
::-webkit-scrollbar {
  width: 0.8em;
  height: 0.8em;
}
::-webkit-scrollbar-thumb {
  background: #666 -webkit-gradient(linear, left top, right top, from(rgba(255,255,255,0.5)), color-stop(0.5, rgba(255,255,255,0.1)), color-stop(0.5, rgba(0,0,0,0)), to(rgba(0,0,0,0.01)));
}
</style>

<body>
<script>
13 14
if (window.testRunner)
    testRunner.dumpAsText();
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

function test()
{
    // Force a layout.
    window.x = document.body.offsetTop;

    var styles = document.getElementsByTagName("style");
    for (var i = 0; i < styles.length; ++i)
        document.head.appendChild(styles[i]);
}
document.addEventListener('DOMContentLoaded', test, false);
</script>
<div style="height: 1000px;">
This test passes if it does not crash.
</div>
</body>