Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / scrollbars / scrollbar-gradient-crash.html
blobe83aa78bf2f64273004f84853de298e6785fc208
1 <style type="text/css">
2 ::-webkit-scrollbar {
3 width: 0.8em;
4 height: 0.8em;
6 ::-webkit-scrollbar-thumb {
7 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)));
9 </style>
11 <body>
12 <script>
13 if (window.testRunner)
14 testRunner.dumpAsText();
16 function test()
18 // Force a layout.
19 window.x = document.body.offsetTop;
21 var styles = document.getElementsByTagName("style");
22 for (var i = 0; i < styles.length; ++i)
23 document.head.appendChild(styles[i]);
25 document.addEventListener('DOMContentLoaded', test, false);
26 </script>
27 <div style="height: 1000px;">
28 This test passes if it does not crash.
29 </div>
30 </body>