[email protected] | df162aa | 2010-08-26 21:05:41 | [diff] [blame] | 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> | ||||
[email protected] | f94dcec | 2012-06-15 07:38:37 | [diff] [blame] | 13 | if (window.testRunner) |
14 | testRunner.dumpAsText(); | ||||
[email protected] | df162aa | 2010-08-26 21:05:41 | [diff] [blame] | 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> |