summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/values/color-000.xht
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/values/color-000.xht')
-rw-r--r--testing/web-platform/tests/css/CSS2/values/color-000.xht35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/values/color-000.xht b/testing/web-platform/tests/css/CSS2/values/color-000.xht
new file mode 100644
index 0000000000..ea2e3f51d3
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/values/color-000.xht
@@ -0,0 +1,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>