diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/css-color/background-color-hsl-003.html | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-color/background-color-hsl-003.html')
-rw-r--r-- | testing/web-platform/tests/css/css-color/background-color-hsl-003.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-color/background-color-hsl-003.html b/testing/web-platform/tests/css/css-color/background-color-hsl-003.html new file mode 100644 index 0000000000..f9c256e177 --- /dev/null +++ b/testing/web-platform/tests/css/css-color/background-color-hsl-003.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <title>CSS-Color-4: support <angle> value for hsl()/hsla() hue component - test</title> + <link rel="author" title="Jerry Shih" href="mailto:bignose1007@gmail.com" /> + <link rel="author" title="Mozilla" href="http://www.mozilla.org/" /> + <link rel="help" href="https://drafts.csswg.org/css-color-4/#the-hsl-notation" /> + <meta name="assert" content="hsl()/hsla() hue component should support <angle> value." /> + <link rel="match" href="background-color-hsl-003-ref.html" /> + <style type="text/css"> + #p1 { background-color: hsla(120, 75%, 50%, 0.2); } + #p2 { background-color: hsla(120deg, 75%, 50%, 0.4); } + #p3 { background-color: hsla(133.33333333grad, 75%, 50%, 0.6); } + #p4 { background-color: hsla(2.0943951024rad, 75%, 50%, 0.8); } + #p5 { background-color: hsla(0.3333333333turn, 75%, 50%, 1.0); } + #p6 { background-color: hsl(240, 75%, 50%); } + #p7 { background-color: hsl(600deg, 75%, 50%); } + #p8 { background-color: hsl(1066.66666666grad, 75%, 50%); } + #p9 { background-color: hsl(10.4719755118rad, 75%, 50%); } + #p10 { background-color: hsl(2.6666666666turn, 75%, 50%); } + </style> + </head> + <body> + <p id="p1">color</p> + <p id="p2">color</p> + <p id="p3">color</p> + <p id="p4">color</p> + <p id="p5">color</p> + <p id="p6">color</p> + <p id="p7">color</p> + <p id="p8">color</p> + <p id="p9">color</p> + <p id="p10">color</p> + </body> +</html> |