commit 1ab6eba404290fa5ce0c8522812759f547c20cb1 parent c49928c4fc385322590b7f010691c105455eb0d1 Author: Claire Chambers <clchambers@microsoft.com> Date: Thu, 11 Dec 2025 09:28:06 +0000 Bug 2001460 [wpt PR 56158] - [CC clip paths] Re-impose cap on mask image size, a=testonly Automatic update from web-platform-tests [CC clip paths] Re-impose cap on mask image size This CL revies the practice of computing the maximum bounds of a cc clip path animation, which was originally removed to allow for clip-path: none values in animation. The maximum bounds of the animation, like before, is calculated as the union of all keyframes (accounting for timing function extrapolation). Clip-path: none is handled by using the paint cull rect, which is assumed to be large enough to contain all the content that could potentially be clipped by the animation, except in the case of composited transform animations, where we fall back to main. This is done because the performance of having unbounded mask images was extremely poor, with excessive tile creation causing large memory usage on the compositor, and very slow rasterization times in viz. Bug: 447935064, 449779020 Change-Id: Id73d96fc7b16c0333c79343eb3c965aba0473e4f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7161176 Reviewed-by: Kevin Ellis <kevers@chromium.org> Reviewed-by: Stefan Zager <szager@chromium.org> Commit-Queue: Claire Chambers <clchambers@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1556237} -- wpt-commits: d2ec9642b3168c4b9e7e697de91e7beab5581340 wpt-pr: 56158 Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/css/css-masking/clip-path/animations/clip-path-animation-retarget.html b/testing/web-platform/tests/css/css-masking/clip-path/animations/clip-path-animation-retarget.html @@ -2,6 +2,7 @@ <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-retarget-ref.html"> +<meta name=fuzzy content="maxDifference=0-10;totalPixels=0-30"> <style> .container { width: 100px; diff --git a/testing/web-platform/tests/css/css-masking/clip-path/animations/clip-path-animation-start-time.html b/testing/web-platform/tests/css/css-masking/clip-path/animations/clip-path-animation-start-time.html @@ -3,6 +3,7 @@ <link rel="help" href="https://crbug.com/420284818"> <link rel="help" href="https://drafts.csswg.org/css-shapes-1/#basic-shape-interpolation"> <link rel="match" href="clip-path-animation-start-time-ref.html"> +<meta name=fuzzy content="maxDifference=0-10;totalPixels=0-30"> <style> .container { width: 100px;