commit b5f351b7ba8c4855a4b9f376145338a47758b128
parent 2f30170bd486f14e1461ae8a5f61dbcfe7d5b62f
Author: Sam Weinig <sam@webkit.org>
Date: Mon, 5 Jan 2026 10:22:14 +0000
Bug 2007746 [wpt PR 56924] - Adopts the assert_oklab_color() function used in other color animation tests in animate-with-background-color-oklch-002.html, a=testonly
Automatic update from web-platform-tests
Adopts the assert_oklab_color() function used in other color animation tests in animate-with-background-color-oklch-002.html (#56924)
--
wpt-commits: 3bddeaf2bd7cda236fb3ffbe743a50f363b03fa2
wpt-pr: 56924
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testing/web-platform/tests/css/css-animations/animate-with-background-color-oklch-002.html b/testing/web-platform/tests/css/css-animations/animate-with-background-color-oklch-002.html
@@ -59,12 +59,12 @@
anim.currentTime = 1000 * data.at;
const actual = getComputedStyle(target).backgroundColor;
const expected = data.value;
- assert_equals(actual, expected, `Background color at ${100*data.at}% animation progress`);
+ assert_oklab_color(actual, expected, `Background color at ${100*data.at}% animation progress`);
});
}
const bg_color_legacy_rgb_to_oklch = [
- { at: 0, value: 'rgb(255, 0, 0)' },
+ { at: 0, value: 'oklab(0.627955 0.224863 0.125846)' },
{ at: 0.25, value: 'oklab(0.583475 0.163433 0.0446685)' },
{ at: 0.5, value: 'oklab(0.538983 0.101987 -0.0365225)' },
{ at: 0.75, value: 'oklab(0.494492 0.0405407 -0.117713)' },