summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/png/apng/fcTL-dispose-background-final.html
blob: d56010eb3db94467c9687c5043f03a963e5b1a5c (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">
<meta charset="utf-8">
<title>PNG Third Edition: animated PNG, dispose ops</title>
<link rel="author" title="Chris Lilley" href="mailto:chris@w3.org">
<link rel="help" href="https://www.w3.org/TR/png-3/#apng-frame-based-animation">
<link rel="help" href="https://www.w3.org/TR/png-3/#fcTL-chunk">
<link rel="match" href="apng-lime-rectangle-ref.html">
<meta name="assert" content="the frame's region of the output buffer is to be cleared to fully transparent black before rendering the next frame.">
<script>
    const el = document.querySelector(".reftest-wait");
    setTimeout(() => {
        el.classList.remove('reftest-wait');
        }, "1200");
</script>
<style>
    .test {
        width: 128px;
        height: 64px;
        background-color: white;
        background-image:
        linear-gradient(45deg, #ccc 25%, transparent 25%),
        linear-gradient(-45deg, #ccc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ccc 75%),
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
        background-size: 16px 16px;
        background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
    }
</style>
<body>
    <p>Test passes if you see a lime green rectangle, and no red.</p>
    <div class="test"><img src="support/009.png" alt=""></div>
</body>
</html>