[macOS / iOS Debug] Layout Test imported/w3c/web-platform-tests/webrtc/RTCPeerConnect...
[WebKit-https.git] / LayoutTests / scrollbars / scrollbar-gradient-crash.html
1 <style type="text/css">
2 ::-webkit-scrollbar {
3   width: 0.8em;
4   height: 0.8em;
5 }
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)));
8 }
9 </style>
10
11 <body>
12 <script>
13 if (window.testRunner)
14     testRunner.dumpAsText();
15
16 function test()
17 {
18     // Force a layout.
19     window.x = document.body.offsetTop;
20
21     var styles = document.getElementsByTagName("style");
22     for (var i = 0; i < styles.length; ++i)
23         document.head.appendChild(styles[i]);
24 }
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>