2 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
3 <script src=
"resources/text-based-repaint.js"></script>
5 function repaintTest() {
6 getSelection().removeAllRanges();
9 getSelection().selectAllChildren(document
.getElementById('div'));
10 runAfterLayoutAndPaint(function() {
11 document
.getElementById('div').style
.top
= '300px';
18 vertical-align: text-bottom;
28 Tests paint invalidation of selection when its cleared after the container is moved.
<br>
29 Passes if no selection left.