diff options
Diffstat (limited to 'test/data/parse/colours.dat')
-rw-r--r-- | test/data/parse/colours.dat | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/test/data/parse/colours.dat b/test/data/parse/colours.dat new file mode 100644 index 0000000..6a66205 --- /dev/null +++ b/test/data/parse/colours.dat @@ -0,0 +1,76 @@ +## Simple colour values + +##data +#* { color: red } +##errors +##expected +#| 1 * +#| 0x0200000f 0xff000000 +##reset + +#data +* { color: #f00 } +#errors +#expected +| 1 * +| 0x0200000f 0xff000000 +#reset + +#data +* { color: #ff0000 } +#errors +#expected +| 1 * +| 0x0200000f 0xff000000 +#reset + +#data +* { color: rgb(255, 0, 0) } +#errors +#expected +| 1 * +| 0x0200000f 0xff000000 +#reset + +#data +* { color: rgb(100%, 0%, 0%) } +#errors +#expected +| 1 * +| 0x0200000f 0xff000000 +#reset + +## Out-of-range rgb() parameters + +#data +* { color: rgb(300, 0, 0) } +#errors +#expected +| 1 * +| 0x0200000f 0xff000000 +#reset + +#data +* { color: rgb(-10, 0, 0) } +#errors +#expected +| 1 * +| 0x0200000f 0x00000000 +#reset + +#data +* { color: rgb(150%, 0%, 0%) } +#errors +#expected +| 1 * +| 0x0200000f 0xff000000 +#reset + +#data +* { color: rgb(-10%, 0%, 0%) } +#errors +#expected +| 1 * +| 0x0200000f 0x00000000 +#reset + |