diff options
author | bptato <nincsnevem662@gmail.com> | 2025-01-21 17:43:34 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2025-01-21 19:05:57 +0100 |
commit | 68add5b33e5d9f101306aaf84c373dc695b9ab81 (patch) | |
tree | 5602c083a7b4708236e3fe70591e78fd05eb2d99 /test | |
parent | c3461ec8d2a2972cf7ef93e29c756e609af6f94d (diff) | |
download | chawan-68add5b33e5d9f101306aaf84c373dc695b9ab81.tar.gz |
cssvalues: support percentage rgb colors, hsl & hsla
hsl is quite popular these days.
Diffstat (limited to 'test')
-rw-r--r-- | test/layout/color-functions.color.expected | 12 | ||||
-rw-r--r-- | test/layout/color-functions.html | 16 |
2 files changed, 25 insertions, 3 deletions
diff --git a/test/layout/color-functions.color.expected b/test/layout/color-functions.color.expected index b507512a..a65eb8a9 100644 --- a/test/layout/color-functions.color.expected +++ b/test/layout/color-functions.color.expected @@ -1 +1,13 @@ [38;2;100;200;30mtest[39m +hsl +[38;2;0;200;100mtest[39m +[38;2;255;57;56mtest[39m +test +[38;2;255;40;40mtest[39m +test +[38;2;255;40;40mtest[39m +[38;2;255;40;40mtest[39m +[38;2;144;92;173mtest[39m +[38;2;108;142;61mtest[39m +[38;2;140;100;141mtest[39m +[38;2;236;32;235mtest[39m diff --git a/test/layout/color-functions.html b/test/layout/color-functions.html index 6947300e..2c83c227 100644 --- a/test/layout/color-functions.html +++ b/test/layout/color-functions.html @@ -1,4 +1,14 @@ <!DOCTYPE html> -<div style="color: rgba(100, 200, 30, 1)"> -test -</div> +<div style="color: rgba(100, 200, 30, 1)">test</div> +<div style="color: hsl(40, 20, 41)">hsl</div> +<div style="color: rgb(0 , 200 , 100)">test</div> +<div style="color: rgb(200, 0, 0, 1)">test</div> +<div style="color: rgb(200, 0, 0, 1 test test)">test</div> +<div style="color: rgb(200%, 0%, 0%)">test</div> +<div style="color: rgb(200%, 0%, 0)">test</div> +<div style="color: rgb(200% 0% 0)">test</div> +<div style="color: rgb(200% none none)">test</div> +<div style="color: hsl(999 40 40)">test</div> +<div style="color: hsl(445 40 40)">test</div> +<div style="color: hsl(-445 20 40)">test</div> +<div style="color: hsl(-445 9999 40)">test</div> |