From 15bb77472d1ff09dd71e66b6cd3eef48e02b3f43 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 29 May 2024 11:57:50 -0400 Subject: [PATCH] css: Add some parser tests for oklab() etc --- testsuite/css/parser/color.css | 12 ++++++++++++ testsuite/css/parser/color.ref.css | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/testsuite/css/parser/color.css b/testsuite/css/parser/color.css index 61c19b77f1..6a25899c7c 100644 --- a/testsuite/css/parser/color.css +++ b/testsuite/css/parser/color.css @@ -111,3 +111,15 @@ aa { ab { color: color(srgb-linear 1 0.5 0 / 50%); } + +ac { + color: oklab(0.8 0 0.3 / 0.5); +} + +ad { + color: oklch(0.8 0.3 200 / 0.5); +} + +ae { + color: hwb(200 10 90 / 0.5); +} diff --git a/testsuite/css/parser/color.ref.css b/testsuite/css/parser/color.ref.css index 1c3feb436a..71f83b9190 100644 --- a/testsuite/css/parser/color.ref.css +++ b/testsuite/css/parser/color.ref.css @@ -111,3 +111,15 @@ aa { ab { color: color(srgb-linear 1 0.5 0 / 0.5); } + +ac { + color: oklab(0.80000001192092896 0 0.30000001192092896 / 0.5); +} + +ad { + color: oklch(0.80000001192092896 0.30000001192092896 200 / 0.5); +} + +ae { + color: rgba(26,26,26,0.5); +}