Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
<!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>
/css/css-color/greentext-ref.html
<!DOCTYPE html> <meta charset="utf-8"> <title>Green text reference</title> <style> .test { color: #008000} </style> <body> <p class="test">Test passes if this text is green</p> </body>