summaryrefslogtreecommitdiffstats
path: root/layout/reftests/display-list/1709452-1.html
blob: f9fb28cbcae4ae8e0b3d9022d7df5e6504c6f3f8 (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
<!DOCTYPE html>
<html class="reftest-wait">
<head>
    <meta charset="UTF-8">
    <style>
    a {
        color: rgb(255, 0, 0);
    }
    </style>
</head>

<body>
    <div style="display: flex;">
        <div style="display: block;">
            <div style="display: inline; filter: invert(0);">
                <a href="#">
                    <span>FOO</span>
                </a>
                <div style="position: absolute; top: 100px; left: 100px;">
                    <a id="bar" href="#">BAR</a>
                </div>
            </div>
        </div>
    </div>
    <script>
    function doTest() {
      const bar = document.getElementById('bar');
      bar.style.color = 'rgb(0, 255, 0)';
      document.documentElement.removeAttribute('class');
    }
    document.addEventListener("MozReftestInvalidate", doTest, false);
    </script>
</body>
</html>