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-visited-fallback.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="match" href="currentcolor-visited-fallback-ref.html">
<title>currentcolor and visited inherited parent color fallback</title>
<style>
body { color: red; }
div { color: green; }
a {
color: currentcolor;
}
</style>
<div>
<a href="">This should be green</a>
</div>
<div>
<a href="unvisited">This should be green</a>
</div>