Permalink
Browse files

Recognize 'transparent' keyword as a color when parsing

  • Loading branch information...
1 parent 7b143ad commit 36b8510f0c87b42b5e49f9dc1e8d52946a54c9a7 Jason Johnston committed Jul 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 sources/Tokenizer.js
View
2 sources/Tokenizer.js
@@ -164,7 +164,7 @@ PIE.Tokenizer = (function() {
this.ch += val.length;
// Named colors
- if( val.toLowerCase() in PIE.Color.names || val === 'currentColor' ) {
+ if( val.toLowerCase() in PIE.Color.names || val === 'currentColor' || val === 'transparent' ) {
return newToken( Type.COLOR, val );
}

0 comments on commit 36b8510

Please sign in to comment.