blob: 100229314950ab5f43482bfb49df84235bd6f9b4 [file] [log] [blame]
<!DOCTYPE html>
<html><body>
<style>
#host {
width: 200px;
height: 100px;
background-color: blue;
}
#host::-webkit-scrollbar {
width: 20px;
}
#div1 {
position: fixed;
overflow: scroll;
width: 80px;
height: 80px;
background-color: red;
}
#div1::-webkit-scrollbar {
width: 20px;
}
</style>
<div id="host"><div id="div1">some long text showing scrollbar</div></div>
</body></html>