WebKit export of https://bugs.webkit.org/show_bug.cgi?id=260517 (#41598)

diff --git a/css/css-color/currentcolor-004-ref.html b/css/css-color/currentcolor-004-ref.html
new file mode 100644
index 0000000..835e4b8
--- /dev/null
+++ b/css/css-color/currentcolor-004-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<style>
+* {
+    color: green;
+}
+</style>
+<div>
+    <a href=""><div>This should be green and not red.</div></a>
+</div>
diff --git a/css/css-color/currentcolor-004.html b/css/css-color/currentcolor-004.html
new file mode 100644
index 0000000..06a4290
--- /dev/null
+++ b/css/css-color/currentcolor-004.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<link rel="match" href="currentcolor-004-ref.html">
+<title>currentcolor and visited inherited parent color</title>
+<link rel="help" href="https://drafts.csswg.org/css-color-4/#resolving-other-colors">
+<link rel="author" title="Matthieu Dubet" href="https://github.com/mdubet">
+<style>
+a { color: red; }
+a:visited { color: green; }
+div {
+    color: currentcolor;
+}
+</style>
+<div>
+    <a href=""><div>This should be green and not red.</div></a>
+</div>