varshluck / closure-stylesheets

Automatically exported from code.google.com/p/closure-stylesheets
Apache License 2.0
0 stars 0 forks source link

parser error for line like " background: qlineargradient(x1:1, y1:0, x2:0, y2:0, stop: 0 COLOR8, stop: 1 COLOR6);" #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am using css with Qt, I have a css as follow:
 QSlider::sub-page:horizontal
 {
   background: qlineargradient(x1:1, y1:0, x2:0, y2:0, stop: 0 COLOR8, stop: 1 COLOR6);
   margin-top: 5px; 
   margin-bottom: 5px; 
 }
COLOR8 and COLOR6 are defined already.
The parser has errors as follow:
Compiler parsing error: Parse error in ShivaQt.gss at line 150 column 35:
   background: qlineargradient(x1:1, y1:0, x2:0, y2:0, stop: 0 COLOR8, stop: 1 COLOR6);
                                  ^

com.google.common.css.compiler.ast.GssParserException: Parse error in 
ShivaQt.gss at line 150 column 35:
   background: qlineargradient(x1:1, y1:0, x2:0, y2:0, stop: 0 COLOR8, stop: 1 COLOR6);

I used option " --allow-unrecognized-functions" but not works. I only want the 
closure-stylesheets pars "COLOR8" and "COLOR6" for me, the version I use is 
closure-stylesheets-20111230.jar.

Is there any other way I can avoid this issue or it is a limitation currently 
for such function "qlineargradient" from Qt?

Original issue reported on code.google.com by machanga...@gmail.com on 5 Apr 2012 at 8:02