|
From: HRJet <hr...@gm...> - 2014-04-28 06:04:18
|
Hello,
I am trying to parse CSS from the Bootstrap project. This project's
CSS has a lot of declarations of the following type:
.carousel-control.left {
background-image: -webkit-linear-gradient(left, color-stop(rgba(0,
0, 0, .5) 0%), color-stop(rgba(0, 0, 0, .0001) 100%));
background-image: linear-gradient(to right, rgba(0, 0, 0,
.5) 0%, rgba(0, 0, 0, .0001) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000',
endColorstr='#00000000', GradientType=1);
background-repeat: repeat-x;
}
The problematic declaration is filter. The error shown by css parser is:
Error in style rule. (Invalid token ":". Was expecting one of: <EOF>,
<S>, <NUMBER>, "inherit", <IDENT>, <STRING>, <PLUS>, <COMMA>, <HASH>,
<IMPORTANT_SYM>, <EMS>, <EXS>, <LENGTH_PX>, <LENGTH_CM>, <LENGTH_MM>,
<LENGTH_IN>, <LENGTH_PT>, <LENGTH_PC>, <ANGLE_DEG>, <ANGLE_RAD>,
<ANGLE_GRAD>, <TIME_MS>, <TIME_S>, <FREQ_HZ>, <FREQ_KHZ>,
<PERCENTAGE>, <DIMENSION>, <URI>, <FUNCTION>, "}", ";", "/", "-".)
Ignoring the following declarations in this rule.
Why does it Ignore the following declarations in the rule? Can it not
skip to the next semi-colon and proceed to parse the remaining
declaration in the rule?
thanks,
Harshad
|