blob: 36f1df067f5d923647088fbcc36d40f735acffd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<!DOCTYPE html>
<style>
#block {
display: inline;
margin: 10px;
width: 400px;
height: 60px;
border: 1px solid black;
-webkit-backface-visibility: hidden;
position: relative;
left: 10px;
}
</style>
<script src="resources/text-based-repaint.js"></script>
<script>
function repaintTest()
{
document.body.offsetTop;
var div = document.getElementById("block");
div.style.left = '50px';
}
window.onload = runRepaintTest;
</script>
<div id="block">When this layer moves it shouldn't generate a repaint rect.</div>
|