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/t422-rgba-func-no-mixed-f.xht - WPT Dashboard Interop Dashboard
<head>
<title>CSS Test: no mixed rgba() 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 rgba() values are only accepted when all integers or all percentages." />
<style type="text/css"><![CDATA[
p { color: green; }
p { color: rgba(255, 0, 0%, 1.0); }
p { color: rgba(100%, 0%, 0, 1.0); }
p { color: rgba(100%, 1, 0, 1.0); }
p { color: rgba(255, 1%, 0%, 1.0); }
p { color: rgba(99%, 0%, 0, 1.0); }
p { color: rgba(0%, 0, 0%, 1.0); }
p { color: rgba(0, 0%, 0%, 1.0); }
p { color: rgba(254, 255%, 0, 1.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>