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/html/canvas/element/manual/shadows/canvas_shadows_system_colors.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/html/canvas/element/manual/shadows/canvas_shadows_system_colors.html')
-rw-r--r-- | testing/web-platform/tests/html/canvas/element/manual/shadows/canvas_shadows_system_colors.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/canvas/element/manual/shadows/canvas_shadows_system_colors.html b/testing/web-platform/tests/html/canvas/element/manual/shadows/canvas_shadows_system_colors.html new file mode 100644 index 0000000000..42978fb18f --- /dev/null +++ b/testing/web-platform/tests/html/canvas/element/manual/shadows/canvas_shadows_system_colors.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"> + <title>System Colors work for Canvas Drop-Shadow Filters</title> + <link rel="match" href="canvas_shadows_system_colors-expected.html"> +</head> +<body> +<canvas id='c' width="100" height="200"> +<script> +// See crbug.com/1226282 and crbug.com/1081945 +// A reference test is necessary because system colors do not have defined +// numeric values. Here we're comparing 'GrayText' to css 'GrayText'. +var ctx = document.getElementById('c').getContext('2d'); +ctx.filter = 'drop-shadow(0px 100px 0 GrayText)'; +ctx.fillRect(0,0,100,100); +</script> +</body> +</html>
\ No newline at end of file |