From c79fb32a841bf5eca9428ecdda62ecb90b1edf8f Mon Sep 17 00:00:00 2001 From: Cerdic Date: Thu, 21 Sep 2023 10:18:03 +0200 Subject: [PATCH] tests: append rgb/rgba cases with decimal alpha layer --- testing/unit-tests/csst/values/rgb.csst | 12 ++++++++++++ testing/unit-tests/csst/values/rgba.csst | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/testing/unit-tests/csst/values/rgb.csst b/testing/unit-tests/csst/values/rgb.csst index edbde65..06b3f66 100644 --- a/testing/unit-tests/csst/values/rgb.csst +++ b/testing/unit-tests/csst/values/rgb.csst @@ -3,8 +3,11 @@ Test rgb variants --CSS-- white { color: rgb(255, 255, 255); } white10 { color: rgb(255, 255, 255, 10%); } +white10d { color: rgb(255, 255, 255, 0.1); } white20 { color: rgb(255, 255, 255, 20%); } +white20d { color: rgb(255, 255, 255, 0.2); } white30 { color: rgb(255 255 255 / 30%); } +white30d { color: rgb(255 255 255 / 0.3); } --EXPECT-- array( 'white' => array( @@ -13,12 +16,21 @@ array( 'white10' => array( 'color' => '#ffffff1a' ), + 'white10d' => array( + 'color' => '#ffffff1a' + ), 'white20' => array( 'color' => '#fff3' ), + 'white20d' => array( + 'color' => '#fff3' + ), 'white30' => array( 'color' => '#ffffff4d' ), + 'white30d' => array( + 'color' => '#ffffff4d' + ), ) --SETTINGS-- compress_colors=1 \ No newline at end of file diff --git a/testing/unit-tests/csst/values/rgba.csst b/testing/unit-tests/csst/values/rgba.csst index 79c26d0..6396027 100644 --- a/testing/unit-tests/csst/values/rgba.csst +++ b/testing/unit-tests/csst/values/rgba.csst @@ -3,8 +3,11 @@ Test rgb variants --CSS-- white { color: rgba(255, 255, 255); } white10 { color: rgba(255, 255, 255, 10%); } +white10d { color: rgba(255, 255, 255, 0.1); } white20 { color: rgba(255, 255, 255, 20%); } +white20d { color: rgba(255, 255, 255, 0.2); } white30 { color: rgba(255 255 255 / 30%); } +white30d { color: rgba(255 255 255 / 0.3); } --EXPECT-- array( 'white' => array( @@ -13,12 +16,21 @@ array( 'white10' => array( 'color' => '#ffffff1a' ), + 'white10d' => array( + 'color' => '#ffffff1a' + ), 'white20' => array( 'color' => '#fff3' ), + 'white20d' => array( + 'color' => '#fff3' + ), 'white30' => array( 'color' => '#ffffff4d' ), + 'white30d' => array( + 'color' => '#ffffff4d' + ), ) --SETTINGS-- compress_colors=1 \ No newline at end of file