blob: f60b946bc5d0bed06e7a0a990d6793f144a21a6c [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>CSS 2.1 Test Suite: RGB color syntax error handling</title>
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#color-units">
<style type="text/css">
p.correct { color: red }
p.incorrect { color: green }
p#numnumpercent { color: rgb(255, 0, 0%) }
p#percentnumnum { color: rgb(100%, 0, 0) }
p#percentpercentnum { color: rgb(100%, 0%, 0) }
p#percentnumpercent { color: rgb(100%, 0, 0%) }
p#floatnumnum { color: rgb(255.0, 0, 0) }
p#numfloatnum { color: rgb(0, 128.0, 0) }
p#numnumnum { color: rgb(0, 128, 0) }
p#percentpercentpercent1 { color: rgb(0%, 50%, 0%) }
p#percentpercentpercent2 { color: rgb(0%, 49.99%, 0%) }
</style>
</head>
<body>
<p id="numnumpercent" class="incorrect">This should be green</p>
<p id="percentnumnum" class="incorrect">This should be green</p>
<p id="percentpercentnum" class="incorrect">This should be green</p>
<p id="percentnumpercent" class="incorrect">This should be green</p>
<p id="floatnumnum" class="incorrect">This should be green</p>
<p id="numfloatnum" class="incorrect">This should be green</p>
<p id="numnumnum" class="correct">This should be green</p>
<p id="percentpercentpercent1" class="correct">This should be green</p>
<p id="percentpercentpercent2" class="correct">This should be green</p>
</body>
</html>