From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- .../registered-property-computation.html | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'testing/web-platform/tests/css/css-properties-values-api/registered-property-computation.html') diff --git a/testing/web-platform/tests/css/css-properties-values-api/registered-property-computation.html b/testing/web-platform/tests/css/css-properties-values-api/registered-property-computation.html index f4c718b139..8ca9d4499a 100644 --- a/testing/web-platform/tests/css/css-properties-values-api/registered-property-computation.html +++ b/testing/web-platform/tests/css/css-properties-values-api/registered-property-computation.html @@ -155,6 +155,14 @@ test_computed_value('', '#badbee33', 'rgba(186, 219, 238, 0.2)'); test_computed_value('', 'tomato', 'rgb(255, 99, 71)'); test_computed_value('', 'plum', 'rgb(221, 160, 221)'); test_computed_value('', 'currentcolor', 'currentcolor'); +test_computed_value('', 'color-mix(in srgb, black, white)', 'color(srgb 0.5 0.5 0.5)'); +test_computed_value('', 'color-mix(in srgb, currentcolor, red)', 'color-mix(in srgb, currentcolor, rgb(255, 0, 0))'); +test_computed_value('', 'color-mix(in srgb, currentcolor, #ffffff 70%)', 'color-mix(in srgb, currentcolor 30%, rgb(255, 255, 255))'); +test_computed_value('', 'color-mix(in srgb, currentcolor 20%, #ffffff 20%)', 'color-mix(in srgb, currentcolor 20%, rgb(255, 255, 255) 20%)'); +test_computed_value('', 'light-dark(currentcolor, red)', 'currentcolor'); +test_computed_value('', 'light-dark(lime, red)', 'rgb(0, 255, 0)'); +test_computed_value('', 'color(from lime srgb g g g)', 'color(srgb 1 1 1)'); +test_computed_value('', 'color(srgb 1 1 1 / calc(NaN))', 'color(srgb 1 1 1 / 0)'); // Custom ident values that look like color keywords should not be converted. test_computed_value('*', 'tomato', 'tomato'); -- cgit v1.2.3