about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-01-21 17:43:34 +0100
committerbptato <nincsnevem662@gmail.com>2025-01-21 19:05:57 +0100
commit68add5b33e5d9f101306aaf84c373dc695b9ab81 (patch)
tree5602c083a7b4708236e3fe70591e78fd05eb2d99 /test
parentc3461ec8d2a2972cf7ef93e29c756e609af6f94d (diff)
downloadchawan-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.expected12
-rw-r--r--test/layout/color-functions.html16
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 @@
 test
+hsl
+test
+test
+test
+test
+test
+test
+test
+test
+test
+test
+test
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>