https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 149c83d77d05dafea4a5a4dadf6670bfadc8e360 authored by moz-wptsync-bot on 16 March 2018, 13:38:52 UTC
Port XHR to WorkerRef,
Tip revision: 149c83d
t421-rgb-func-no-mixed-f.xht
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>CSS Test: no mixed rgb() values</title>
		<link rel="author" title="L. David Baron" href="https://dbaron.org/" />
		<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
		<link rel="help" href="http://www.w3.org/TR/css3-color/#rgb-color" />
		<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>
back to top