4 <style type="text/css">
5 .float { float: right; height: 40px; width: 40px; }
6 .test { height: 200px; background-color: aliceblue }
8 <script src="resources/repaint.js" type="text/javascript"></script>
9 <script type="text/javascript">
10 function repaintTest()
12 document.getElementById('target').style.height='20px';
16 <body onload="runRepaintTest()">
17 <div id="scroller" style="overflow: hidden; height: 40px">
19 <div class="float"></div>
20 <div style="clear: right; padding-bottom: 10px;">
21 <div style="height: 40px; width: 40px; background-color: red;" id="target">
26 <script>scroller.scrollTop = 60;</script>