From 626e7a5c7f3bb110509e20253c88fc837f6ec49d Mon Sep 17 00:00:00 2001 From: Thomas Fach-Pedersen Date: Wed, 15 Jun 2022 16:40:00 +0200 Subject: [PATCH] LibWeb: Test parsing of CSS Level 4 rgb and hsl syntax --- Base/res/html/misc/colors.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Base/res/html/misc/colors.html b/Base/res/html/misc/colors.html index f236090873..8e35ffabbb 100644 --- a/Base/res/html/misc/colors.html +++ b/Base/res/html/misc/colors.html @@ -13,6 +13,10 @@ #h { background-color: hsl(120, 100%, 50%); } #i { background-color: hsla(120, 100%, 50%, 1); } #j { color: lime; background-color: currentColor; } + #k { background-color: rgba(0 255 0 / 100%); } + #l { background-color: rgba(0% 100% 0% / 1); } + #m { background-color: hsl(120 100% 50%); } + #n { background-color: hsla(120 100% 50% / 1); } @@ -27,5 +31,9 @@
This is green, using hsl(120, 100%, 50%).
This is green, using hsla(120, 100%, 50%, 1).
This is green, using currentcolor.
+
This is green, using rgba(0 255 0 / 100%).
+
This is green, using rgba(0% 100% 0% / 1).
+
This is green, using hsl(120 100% 50%).
+
This is green, using hsla(120 100% 50% / 1).