summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/png/apng/fcTL-dispose-in-region-background.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/png/apng/fcTL-dispose-in-region-background.html
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/png/apng/fcTL-dispose-in-region-background.html')
-rw-r--r--testing/web-platform/tests/png/apng/fcTL-dispose-in-region-background.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/web-platform/tests/png/apng/fcTL-dispose-in-region-background.html b/testing/web-platform/tests/png/apng/fcTL-dispose-in-region-background.html
new file mode 100644
index 0000000000..5f61da232d
--- /dev/null
+++ b/testing/web-platform/tests/png/apng/fcTL-dispose-in-region-background.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<meta charset="utf-8">
+<title>PNG Third Edition: animated PNG, dispose ops and regions</title>
+<link rel="author" title="Philip Taylor" href="mailto:excors@gmail.com">
+<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-blue-rect-checkerboard-ref.html">
+<meta name="assert" content="The frame must be rendered within the region defined by x_offset, y_offset, width, and height. 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');
+ }, 1300);
+</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 solid blue rectangle containing a smaller region with a grey checkerboard, and no red.</p>
+ <div class="test"><img src="support/015.png" alt=""></div>
+</body>
+</html> \ No newline at end of file