blob: cfef20124edb0834417fbc29c6012f7a19995586 [file] [log] [blame]
<style>
::-webkit-scrollbar {
background: red;
}
body {
overflow: scroll;
}
div {
overflow: scroll;
width: 200px;
height: 200px;
}
</style>
<div></div>
<script>
window.onload = function() {
document.body.offsetWidth;
document.styleSheets[0].cssRules[0].style.backgroundColor = 'green';
}
</script>