blob: 291e2f17e8aef5a429aa55bc0e1f85b4de7485f5 [file] [log] [blame]
<!DOCTYPE html>
<div id=one style="width: 100px; height: 100px; direction: rtl; overflow: scroll;">
<div style="width: 192px; height: 192px; border: 4px solid black;"></div>
</div>
<div id=two style="width: 100px; height: 100px; direction: ltr; overflow: scroll; margin-top: 1em;">
<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.
one.scrollLeft = -1;
one.scrollLeft = 0;
two.scrollLeft = 1;
two.scrollLeft = 0;
</script>