From 02769080aa7f89aa0197cba28801c2c41aaaf28d Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 21 Jan 2011 21:19:26 +0000 Subject: Add transparent keyword to colour value parsing svn path=/trunk/libcss/; revision=11436 --- src/parse/properties/utils.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/parse/properties') diff --git a/src/parse/properties/utils.c b/src/parse/properties/utils.c index 1641353..71296f4 100644 --- a/src/parse/properties/utils.c +++ b/src/parse/properties/utils.c @@ -421,6 +421,12 @@ css_error css__parse_colour_specifier(css_language *c, } if (token->type == CSS_TOKEN_IDENT) { + if ((lwc_string_caseless_isequal( + token->idata, c->strings[TRANSPARENT], + &match) == lwc_error_ok && match)) { + *result = 0; /* black transparent */ + return CSS_OK; + } error = css__parse_named_colour(c, token->idata, result); if (error != CSS_OK && c->sheet->quirks_allowed) { error = css__parse_hash_colour(token->idata, result); -- cgit v1.2.3