summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/multiple-backgrounds-style-change.html
blob: ff865ac56ca7747d0dded2e50fe0ca8f6b27ff95 (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
31
<!DOCTYPE html>
<style>
    .box {
        height: 200px;
        width: 200px;
        border: 1px solid black;
        background-repeat: no-repeat;
        background-size: 100px 100px;
        background-position: 0 0, 100px 100px;
        background-image: url('../images/resources/green-256x256.jpg'), url('../images/resources/dice.png');
    }

    .composited {
        transform: translate3d(0, 0, 0);
    }

    .composited.changed {
        transform: translate3d(50px, 50px, 0);
    }
</style>
<script src="resources/text-based-repaint.js"></script>
<script>
    function repaintTest()
    {
        document.getElementById('test').classList.add('changed');
    }

    onload = runRepaintTest;
</script>
<div id="test" class="composited box">
</div>