summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/resize-with-border.html
blob: c24dafb894e171c9e3e3a5d99b8183b954cf2840 (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
25
26
27
28
<!DOCTYPE html>
<script src="resources/text-based-repaint.js"></script>
<script>
function repaintTest()
{
    document.getElementById('div').style.width = '400px';
}
window.onload = runRepaintTest;
</script>
<style>
body {
    margin: 0;
}
#div {
    position: absolute;
    top: 100px;
    left: 100px;
    width: 200px;
    height: 200px;
    border: green 10px solid;
}
</style>
<div>
Tests repaint when a box with border is resized.
Passes if the result paint rects cover all changed part,
the new border is correctly drawn and there is no residue of the old border.
</div>
<div id="div"></div>