summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/repaint-on-style-change.html
blob: 51fe3dfd4e1fdc3ea952215f69fa33575925bcd0 (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
29
30
<!DOCTYPE html>
<html>
<head>
    <title>Test for repaint on style change</title>
    <script src="resources/text-based-repaint.js" type="text/javascript"></script>
    <script>
        function repaintTest()
        {
            if (!window.testRunner)
                return;
            document.getElementById('box').style['background-color'] = 'green';
        }
    </script>
    <style>
    div {
        background-color: magenta;
        height: 100px;
        width: 100px;

        position: absolute;
        top: 260px;
        left: 260px;
    }
    </style>
</head>
<body onload="runRepaintTest()">
    <div id='box'> </div>
</body>
</html>