From 066959a2f2e30a073beea8b71d3bde62c9d058e3 Mon Sep 17 00:00:00 2001 From: Kevin Ellis Date: Fri, 12 Apr 2024 13:25:45 -0700 Subject: [PATCH] Short-circuit interpolation calculation for a static-valued property With the exception of cross-fade interpolations, we can sample a single keyframe and use its value throughout the animation if the property is constant-valued. For an animation of the background property that only explicitly sets the background color, we can short-circuit the work when applying the animation effect for all of the implicitly set properties. Bug: 333861763 Change-Id: Id5634a2656b5e739a91d9593a3ff7c5bb58a85b3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5426601 Commit-Queue: Kevin Ellis Reviewed-by: Robert Flack Cr-Commit-Position: refs/heads/main@{#1286714} --- .../background-shorthand.html | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 web-animations/animation-model/keyframe-effects/background-shorthand.html diff --git a/web-animations/animation-model/keyframe-effects/background-shorthand.html b/web-animations/animation-model/keyframe-effects/background-shorthand.html new file mode 100644 index 00000000000000..f186643331f6f0 --- /dev/null +++ b/web-animations/animation-model/keyframe-effects/background-shorthand.html @@ -0,0 +1,55 @@ + + + + +CSS Animations: Expansion of shorthand properties + + + + + +
+ +