| <script src="../../../resources/js-test-pre.js"></script> |
| ::-webkit-scrollbar-thumb { |
| background-color: #CCCCCC; |
| -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5); |
| <script type="text/javascript"> |
| description('Tests that element.clientWidth of hidden element with scrollbars returns proper values'); |
| var inner = document.createElement('p'); |
| var outer = document.createElement('div'); |
| outer.setAttribute("id", "scrollDiv"); |
| style.position = "absolute"; |
| style.visibility = "hidden"; |
| style.backgroundColor = "red"; |
| style.overflow = "hidden"; |
| outer.appendChild(inner); |
| document.body.appendChild(outer); |
| outer.style.overflow = 'scroll'; |
| shouldBe("document.getElementById('scrollDiv').clientWidth", "190"); |
| <body id="label" onload="runTest()"> |