summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-color/currentcolor-004.html
blob: 06a429071ab7dac4f8583ba17a41d73f6d637e3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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>