11 lines
339 B
HTML
11 lines
339 B
HTML
<!DOCTYPE html>
|
|
<div id=e style="width: 100px; height: 100px; direction: rtl; overflow: scroll;">
|
|
<div style="width: 192px; height: 192px; border: 4px solid black;"></div>
|
|
</div>
|
|
<script>
|
|
// Jiggle values around so that assigning 0 to scrollLeft isn't ignored due to
|
|
// it already being 0.
|
|
e.scrollLeft = -1;
|
|
e.scrollLeft = 0;
|
|
</script>
|