summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-01-10 18:00:58 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-01-10 18:00:58 +0000
commit01356fb18c747c6e1920db67379776bf6f57866a (patch)
tree702e0621b02f895c512bd87e490e77668907354a /src
parentabb037cbc2d2279f77125f3d8a2c9e127363f762 (diff)
downloadlibcss-01356fb18c747c6e1920db67379776bf6f57866a.tar.gz
libcss-01356fb18c747c6e1920db67379776bf6f57866a.tar.bz2
Document the grammar of colour specifiers
svn path=/trunk/libcss/; revision=6020
Diffstat (limited to 'src')
-rw-r--r--src/parse/properties.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/parse/properties.c b/src/parse/properties.c
index a070354..383fe04 100644
--- a/src/parse/properties.c
+++ b/src/parse/properties.c
@@ -6403,6 +6403,13 @@ css_error parse_colour_specifier(css_language *c,
UNUSED(c);
UNUSED(result);
+ /* IDENT(<colour name>) | HASH(rgb | rrggbb) |
+ * FUNCTION(rgb) [ [ NUMBER | PERCENTAGE ] ',' ] {3} ')'
+ *
+ * For quirks, NUMBER | DIMENSION | IDENT, too
+ * I.E. "123456" -> NUMBER, "1234f0" -> DIMENSION, "f00000" -> IDENT
+ */
+
/** \todo Parse colours */
/* For now, consume everything up to the end of the declaration or !,