summaryrefslogtreecommitdiffstats
path: root/layout/painting/crashtests/1589800-1.html
blob: 8af28028a0e471ec61a3868022a0b79e9a6c7309 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <style>
        #parent {
        transform: rotateZ(1deg);
        position: absolute;
        opacity: 0.5;
        overflow-x: hidden;
    }

    #child {
        width: 10px;
        height: 10px;
    }

    .blend {
        mix-blend-mode: color-burn;
    }
    </style>
</head>

<body>
    <div id="parent">
        <div id="child">a</div>
    </div>
    <div>
        <div id="blend">a</div>
    </div>
    <script type="text/javascript">
    function modify() {
        var e = document.getElementById("child");
        e.style.backgroundColor = "red";
        setTimeout(addBlend, 0);
    }

    function addBlend() {
        var e = document.getElementById("blend");
        e.classList.add("blend");
    }

    // setTimeout(modify, 3000);
    window.addEventListener("MozAfterPaint", modify);
    </script>
</body>
</html>