1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<!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: RGB color syntax error handling</title>
<link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/>
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/parsing/006.html" type="text/html"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#color-units"/>
<link rel="match" href="color-000-ref.xht"/>
<meta name="flags" content="invalid"/>
<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#numpercentnum { color: rgb(255, 0%, 0); }
p#numnumnum { color: rgb(0, 128, 0) }
p#percentpercentpercent1 { color: rgb(0%, 50%, 0%) }
p#percentpercentpercent2 { color: rgb(0%, 50.01%, 0%) }
</style>
</head>
<body>
<p class="incorrect" id="numnumpercent">This should be green</p>
<p class="incorrect" id="percentnumnum">This should be green</p>
<p class="incorrect" id="percentpercentnum">This should be green</p>
<p class="incorrect" id="percentnumpercent">This should be green</p>
<p class="incorrect" id="numpercentnum">This should be green</p>
<p class="correct" id="numnumnum">This should be green</p>
<p class="correct" id="percentpercentpercent1">This should be green</p>
<p class="correct" id="percentpercentpercent2">This should be green</p>
</body>
</html>
|