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/t44-currentcolor-background-b.xht - WPT Dashboard Interop Dashboard
<head>
<title>CSS Test: currentColor (with 'background-color')</title>
<link rel="match" href="t44-currentcolor-background-b-ref.html" />
<meta name="assert" content="currentColor uses the color from the color property" />
<style type="text/css"><![CDATA[
#two {
color: green;
background: red;
background: currentcolor;
}
#three {
color: green;
background-color: red;
background-color: currentColor;
}
]]></style>
</head>
<body>
<p>This paragraph should be followed by two green blocks.</p>
<p id="two">This text should NOT be visible.</p>
<p id="three">This text should NOT be visible.</p>
</body>
</html>