rflynn/css-tools — Issue #5: Some css3 declarations cause parse error
Author: jonahs77
Created: 2012-02-23 21:13:08+00:00
State: open

A declaration like this causes a parse error:
-webkit-transform:translate3d(0,0,0);

eg:

$ echo '.x { -webkit-transform:translate3d(0,0,0); }' | ./src/css-refactor.py
Traceback (most recent call last):
File "./src/css-refactor.py", line 39, in
doc = cssparse.CSSDoc.parse(contents)
File "/Users/jonah/git/css-tools/src/parse.py", line 210, in parse
lineno, line, repr(text[nextchar:nextchar+256])))
Exception: Line 0: .x { -webkit-transform:translate3d(0,0,0); }
parse error: "'.x { -webkit-transform:translate3d(0,0,0); }\n'..."