Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<meta charset="utf-8">
<title>inherited link color when modifying parent</title>
<link rel="author" title="Steinar H. Gunderson" href="mailto:sesse@chromium.org">
<style>
div { color: green; }
a { color: green; }
</style>
<main>
<div id="parentdiv">
<a href="" id="link">Visited link should be green</a>
</div>
</main>