Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-color/currentcolor-004.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="match" href="currentcolor-004-ref.html">
<title>currentcolor and visited inherited parent color</title>
<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>