summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-color/color-mix-currentcolor-visited-getcomputedstyle.html
blob: 754fe56a96f5e0eaa6aef075468786c1b5640487 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<meta charset="utf-8">
<title>color-mix and currentcolor with :visited don't leak information via getComputedStyle</title>
<link rel="help" href="https://drafts.csswg.org/css-color-5/#color-mix">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>

<style>
a:link { color: red; }
a:visited { color: green; }
</style>

<a href=""><span id="target">This background should be green and not red</span></a>

<script>
test_computed_value("background-color", "color-mix(in srgb, currentcolor, white)", "color(srgb 1 0.5 0.5)", "should not leak :visited for computed style");
</script>