summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-background-clip-crash.html
blob: 1fa645f45777fd82fd5f95dbdf8d83b53f1f0f14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!doctype html>
<html>
<body>
    <style>
        body {
            content-visibility: hidden;
            background-clip: text;
            position: absolute;
            border-right-style: dashed;
            border-top-style: ridge;
            background-color: green;
        }
    </style>
    <script>
        var p1 = document.createElement('p');
        var p2 = document.createElement('p');
        document.body.appendChild(p1);
        document.body.appendChild(p2);
        p1.scroll();
        p2.remove();
    </script>
</body>
</html>