summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-color/color-mix-currentcolor-visited-ref.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-color/color-mix-currentcolor-visited-ref.html')
-rw-r--r--testing/web-platform/tests/css/css-color/color-mix-currentcolor-visited-ref.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-color/color-mix-currentcolor-visited-ref.html b/testing/web-platform/tests/css/css-color/color-mix-currentcolor-visited-ref.html
new file mode 100644
index 0000000000..35376a2ccf
--- /dev/null
+++ b/testing/web-platform/tests/css/css-color/color-mix-currentcolor-visited-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<meta charset="utf-8">
+<title>currentcolor is taken from :visited pseudo-class correctly in color-mix()</title>
+<style>
+a { color: green; background-color: color-mix(in srgb, green, white 75%); }
+</style>
+
+<a href="unvisited">This background should be green and not red</a>
+</html>