blob: e61210b671fb38c4a4d457818b6ed0f2992f9b09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!DOCTYPE html>
<script src="../repaint/resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
window.scrollTo(0, 1000);
document.getElementById('img').src = 'resources/green.jpg';
}
onload = runRepaintTest;
</script>
<body style="height: 2000px">
Checks correct paint invalidation on image src change after a pending scroll.
Passes if there is no assert failure about pending scroll offsets in a debug build
(http://crbug.com/434950), and both the old location and new location of the img are
correctly invalidated.
<img id='img' style="width: 100px; height: 100px; position: fixed; top: 50px; left: 0">
</body>
|