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/color-mix-percents-01.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/color-mix-percents-01.html')
-rw-r--r-- | testing/web-platform/tests/css/css-color/color-mix-percents-01.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-color/color-mix-percents-01.html b/testing/web-platform/tests/css/css-color/color-mix-percents-01.html new file mode 100644 index 0000000000..425ef9a636 --- /dev/null +++ b/testing/web-platform/tests/css/css-color/color-mix-percents-01.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS Color 5: color-mix</title> +<link rel="author" title="Chris Lilley" href="mailto:chris@w3.org"> +<link rel="help" href="https://drafts.csswg.org/css-color-5/#color-mix"> +<link rel="help" href="https://drafts.csswg.org/css-color-4/#interpolation-space"> +<link rel="help" href="https://drafts.csswg.org/css-color-4/#hue-interpolation"> +<link rel="match" href="./color-mix-percents-01-ref.html"> +<meta name="assert" content="missing percentages, percent normalization"> +<style> + .test { background-color: red; width: 14em; height: 2em; margin-top: 0; margin-bottom: 0;} + .t1 { background-color: rgb(68.4898% 36.015% 68.3102%); } + .t2 { background-color: color-mix(in lch, purple 50%, plum 50%);} + .t3 { background-color: color-mix(in lch, purple 50%, plum);} + .t4 { background-color: color-mix(in lch, purple, plum 50%); } + .t5 { background-color: color-mix(in lch, purple, plum);} + .t6 { background-color: color-mix(in lch, plum, purple);} + .t7 { background-color: color-mix(in lch, purple 80%, plum 80%);} +</style> +<body> + <p>Test passes if you see a purple square, and no red.</p> + <div class="test t1"></div> + <div class="test t2"></div> + <div class="test t3"></div> + <div class="test t4"></div> + <div class="test t5"></div> + <div class="test t6"></div> + <div class="test t7"></div> +</body>
\ No newline at end of file |