Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-color/t31-color-currentColor-b.xht - WPT Dashboard Interop Dashboard
<head>
<title>CSS Test: color</title>
<link rel="match" href="t31-color-currentColor-b-ref.html" />
<meta name="assert" content="That currentColor on the color property acts like inherit." />
<style type="text/css"><![CDATA[
#one { color: green; }
#two { color: red; }
#two { color: currentColor; }
]]></style>
</head>
<body>
<div id="one"><p id="two">This text should be green.</p></div>
</body>
</html>