chromium/third_party/blink/web_tests/fast/css/child-style-can-override-visited-style.html

<style>
    .flim {color: green;}
    a:visited {color: red;}
</style>
This tests that a child style can override the :visited style.
<a href>
    <div class=flim>This text should be green (and underlined)</div>
</a>

<div class=flim>This text should be green</div>