Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/CSS2/css1/c531-color-000.xht - WPT Dashboard Interop Dashboard
<head>
<title>CSS Test: color</title>
<link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html"/>
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
<link rel="match" href="c531-color-000-ref.xht" />
<style type="text/css"><![CDATA[
.one {color: green;}
]]></style>
<link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#colors" title="14.1 Foreground color: the 'color' property"/>
</head>
<body>
<p class="one">
This text should be green.
</p>
<p style="color: green;">
This text should be green.
</p>
</body>
</html>