summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-color/color-003.html
blob: c9ed7c773ba0f29753176479c35ef6d1bb801bed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Color 4: color property, initial value</title>
<link rel="author" title="Chris Lilley" href="mailto:chris@w3.org">
<link rel="help" href="https://drafts.csswg.org/css-color-4/#the-color-property">
<link rel="match" href="greentext-ref.html">
<meta name="assert" content="If the currentcolor keyword is set on the color property itself, it is treated as color: inherit.">
<style>
    .outer {color: green;}
    .inner {color: currentcolor;}
</style>
<body>
    <p class="outer"><span class="inner">Test passes if this text is green</span></p>
</body>