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-clamping-a1.0-b.xht - WPT Dashboard Interop Dashboard
<head>
<title>CSS Test: rgba() colors</title>
<link rel="match" href="t422-rgba-clamping-a1.0-b-ref.html" />
<meta name="assert" content="Alpha components of rgba() colors greater than 1 are clamped to 1." />
<style type="text/css"><![CDATA[
html, body { background: white; }
#two, #three, #four, #five, #six { color: rgba(0, 0, 0, 0); }
#two { color: rgba(0, 0, 0, 1.0); }
#three { color: rgba(0, 0, 0, 1.1); }
#four { color: rgba(0, 0, 0, 1.9); }
#five { color: rgba(0, 0, 0, 30); }
#six { color: rgba(0, 0, 0, 7439.79); }
]]></style>
</head>
<body>
<p id="one">There should be six lines of text on this page, all the same color. [1 of 6]</p>
<p id="two">There should be six lines of text on this page, all the same color. [2 of 6]</p>
<p id="three">There should be six lines of text on this page, all the same color. [3 of 6]</p>
<p id="four">There should be six lines of text on this page, all the same color. [4 of 6]</p>
<p id="five">There should be six lines of text on this page, all the same color. [5 of 6]</p>
<p id="six">There should be six lines of text on this page, all the same color. [6 of 6]</p>
</body>
</html>