blob: 7fa3c34d96f58a33b8f824c493f30ea496998d68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<!DOCTYPE html>
<div style="height:200px;width:600px;overflow:scroll">
<div style="position:relative">
<div style="height:400px;margin-bottom:-400px;position:relative">
<div id="chip" style="width:50px;height:50px;position:absolute;background:lightblue;margin:0"></div>
</div>
</div>
</div>
<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<script>
// Test that moving a Layer that is squashed relative to its squashing container repaints correctly.
// In particular, the repaint rect needs to be recorded in the correct position relative to the squashing GraphicsLayer.
function repaintTest()
{
document.getElementById('chip').style.left = "400px";
}
runRepaintTest();
</script>
|