diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
commit | 8dd16259287f58f9273002717ec4d27e97127719 (patch) | |
tree | 3863e62a53829a84037444beab3abd4ed9dfc7d0 /testing/web-platform/tests/css/css-masking | |
parent | Releasing progress-linux version 126.0.1-1~progress7.99u1. (diff) | |
download | firefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz firefox-8dd16259287f58f9273002717ec4d27e97127719.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-masking')
5 files changed, 70 insertions, 4 deletions
diff --git a/testing/web-platform/tests/css/css-masking/clip-path/animations/clip-path-animation-fixed-position-rounding-error-ref.html b/testing/web-platform/tests/css/css-masking/clip-path/animations/clip-path-animation-fixed-position-rounding-error-ref.html index a069e4d3ae..e9f54f3ad3 100644 --- a/testing/web-platform/tests/css/css-masking/clip-path/animations/clip-path-animation-fixed-position-rounding-error-ref.html +++ b/testing/web-platform/tests/css/css-masking/clip-path/animations/clip-path-animation-fixed-position-rounding-error-ref.html @@ -1,7 +1,6 @@ <!DOCTYPE html> <style> .container { - position: fixed; width: 70px; height: 126px; background-color: green; diff --git a/testing/web-platform/tests/css/css-masking/clip-path/animations/clip-path-animation-fixed-position-rounding-error.html b/testing/web-platform/tests/css/css-masking/clip-path/animations/clip-path-animation-fixed-position-rounding-error.html index 8a02a5b2a6..02a14ad65f 100644 --- a/testing/web-platform/tests/css/css-masking/clip-path/animations/clip-path-animation-fixed-position-rounding-error.html +++ b/testing/web-platform/tests/css/css-masking/clip-path/animations/clip-path-animation-fixed-position-rounding-error.html @@ -2,11 +2,10 @@ <html class="reftest-wait"> <link rel="help" href="https://drafts.csswg.org/css-shapes-1/#basic-shape-interpolation"> <link rel="match" href="clip-path-animation-fixed-position-rounding-error-ref.html"> +<meta name="fuzzy" content="maxDifference=0-64;totalPixels=0-400"> <!-- Test that clip paths on elements with position: fixed draw correctly, even in scenarios that involve partial pixels - - Currently uses fuzzy diff because of crbug.com/1249071 --> <style> .container { diff --git a/testing/web-platform/tests/css/css-masking/clip-path/animations/clip-path-animation-fixed-position.html b/testing/web-platform/tests/css/css-masking/clip-path/animations/clip-path-animation-fixed-position.html index 3ffc2a30a7..20fc8e52d8 100644 --- a/testing/web-platform/tests/css/css-masking/clip-path/animations/clip-path-animation-fixed-position.html +++ b/testing/web-platform/tests/css/css-masking/clip-path/animations/clip-path-animation-fixed-position.html @@ -1,6 +1,6 @@ <!DOCTYPE html> <html class="reftest-wait"> -<meta name=fuzzy content="0-10;0-150"> +<meta name=fuzzy content="0-60;0-350"> <link rel="help" href="https://drafts.csswg.org/css-shapes-1/#basic-shape-interpolation"> <link rel="match" href="clip-path-animation-fixed-position-ref.html"> <!-- diff --git a/testing/web-platform/tests/css/css-masking/clip-path/animations/two-clip-path-animation-diff-length4.html b/testing/web-platform/tests/css/css-masking/clip-path/animations/two-clip-path-animation-diff-length4.html new file mode 100644 index 0000000000..0a893cb756 --- /dev/null +++ b/testing/web-platform/tests/css/css-masking/clip-path/animations/two-clip-path-animation-diff-length4.html @@ -0,0 +1,50 @@ +<!DOCTYPE html> +<html class="reftest-wait"> +<link rel="help" href="https://drafts.csswg.org/css-shapes-1/#basic-shape-interpolation"> +<link rel="match" href="two-clip-path-animation-diff-length1-ref.html"> +<style> + #container { + width: 100px; + height: 100px; + background-color: green; + animation: clippath2 0.5s; + } + + @keyframes clippath2 { + 0% { + clip-path: inset(10px 10px); + } + + 1% { + clip-path: inset(10px 10px); + } + + 100% { + clip-path: inset(40px 40px); + } + } +</style> +<script src="/common/reftest-wait.js"></script> +<script src="../../../../web-animations/testcommon.js"></script> +<script src="../../../../web-animations/resources/timing-utils.js"></script> + +<body> + <div id="container"></div> + + <script> + // This test ensures that a new no-op animation still invalidates paint + // and the animation running on the compositor. + document.getAnimations()[0].ready.then(() => { + let anim = document.getElementById("container").animate( + [ + { clipPath: "inset(10px 10px)" }, + { clipPath: "inset(10px 10px)" }, + ], + 2000, + ); + anim.ready.then(() => { return requestAnimationFrame(takeScreenshot); }); + }); + </script> +</body> + +</html> diff --git a/testing/web-platform/tests/css/css-masking/mask-image/mask-image-svg-viewport-changed.html b/testing/web-platform/tests/css/css-masking/mask-image/mask-image-svg-viewport-changed.html new file mode 100644 index 0000000000..156317b251 --- /dev/null +++ b/testing/web-platform/tests/css/css-masking/mask-image/mask-image-svg-viewport-changed.html @@ -0,0 +1,18 @@ +<!doctype html> +<title>Change of viewport affecting mask content</title> +<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-mask-image"> +<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#svg-masks"> +<link rel="match" href="../clip-path/reference/green-100x100.html"> +<div id="container" style="width: 0%"> + <svg style="width: 100%"> + <mask id="mask"> + <rect width="100%" height="100%" fill="white"/> + </mask> + <rect width="100" height="100" fill="red"/> + <rect width="100" height="100" fill="green" mask="url(#mask)"/> + </svg> +</div> +<script> + document.body.offsetTop; + document.getElementById('container').style.width = '100%'; +</script> |