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/t421-rgb-func-no-mixed-f.xht - WPT Dashboard Interop Dashboard
<head>
<title>CSS Test: no mixed rgb() values</title>
<link rel="match" href="t422-rgba-func-no-mixed-f-ref.html" />
<meta name="flags" content="invalid" />
<meta name="assert" content="Test that rgb() values are only accepted when all integers or all percentages." />
<style type="text/css"><![CDATA[
p { color: green; }
p { color: rgb(255, 0, 0%); }
p { color: rgb(100%, 0%, 0); }
p { color: rgb(100%, 1, 0); }
p { color: rgb(255, 1%, 0%); }
p { color: rgb(99%, 0%, 0); }
p { color: rgb(0%, 0, 0%); }
p { color: rgb(0, 0%, 0%); }
p { color: rgb(254, 255%, 0); }
]]></style>
</head>
<body>
<p>This text should be green.</p>
<div>Note: the rules tested by this test may be changed in
future levels of the CSS Color Module.</div>
</body>
</html>