1 <!-- Based on fast/repaint/selection-clear-after-move.html -->
3 <script src=
"../../../fast/repaint/../../resources/run-after-layout-and-paint.js"></script>
4 <script src=
"resources/paint-invalidation-test.js"></script>
6 window
.expectedPaintInvalidationObjects
= [
9 function paintInvalidationTest() {
10 getSelection().removeAllRanges();
13 getSelection().selectAllChildren(document
.getElementById('div'));
14 runAfterLayoutAndPaint(function() {
15 document
.getElementById('div').style
.top
= '300px';
16 runPaintInvalidationTest();
22 vertical-align: text-bottom;
32 Tests paint invalidation of selection when its cleared after the container is moved.
<br>
33 Passes if no selection left.