Please add support to @keyFrames. Using 0.9.18 jar, any @keyframes tags while parsing are being recognised as "CSSUnknownRuleImpl".
@keyframes background900
{
0% { background-position:0 0; }
100% { background-position:0 -900px; }
}
In the above example, if i iterate this rule it removes the "%" sign and it breaks the entire animation. The output looks like this @keyframes background900 { 0 { background-position:0 0; } 100 { background-position:0 -900px; } }
Anonymous
Diff:
Diff:
Diff:
Diff:
Any chance this will get looked at soon? We are currently affected by this and need a fix or a workaound. Any ideas for working aroind this?
Hey Tim,
For the keyframes case, I went ahead with a regex find and replace
operation instead going through css parser.
Thanks,
Shivaraj
On Mon, May 9, 2016 at 5:24 PM, Tim Dionne tdionne@users.sf.net wrote:
Related
Bugs: #61
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Thanks Shivaraj. Could you elaborate a bit? Are you saying that you completely bypass the parser and use regex directly on the CSS source? That sounds risky considering the different formats for CSS rules, including many different whitespace options, etc (I am consuming CSS files from customers, and the formatting is completely arbitrary). What I've done is extended SACParserCSS3 and overridden handleIgnoreableAtRule() to throw a CSSParseException. This allows me to fallback to the original source when this happens.
as a fist step i have fixed the missing units.
Thanks RBRi! So the 'px' suffixes are being preserved now? Do you think the percent signs will be more difficult? I appreciate you working on this!
Ok, 'units' was a bit misleading, the latest snapshot should preserve the whole string including percent signs.
Thanks!! I have verified that the latest snapshot build is working properly. Awseome. Any idea when 0.9.19 will be available?
Thanks again.
I hope to get it done before end of may.
Thanks for testing and your feedback.
Excellent! Thank you for the parser!
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Hey RBRi, is this still not released? Or did you release part of it, preserving the % signs and units?
The issue will be open until i find the time ot support the @keyframes rules in all its glory.
Last edit: RBRi 2018-01-21
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Is @keyframes supported in css-parser-0.9.20 ? Is this considered as UnknownRule ?
Last edit: Anonymous 2016-09-22
@keyframes are parsed correctly (you won't lost '%' character) but they are still recognized as CSSUnknownRuleImpl.
Hey Adam,
This issue was fixed. Which is the jar version you using ?
Last edit: RBRi 2018-01-21
Hi,
I'm using 0.9.20 (latest released version).
I made a small mistake, because my comment should be an answer to "Anonymous - 2016-09-22" question (instead of a standalone comment). I didn't verify 0.9.21-SNAPSHOT.
Best Regards
Last edit: Adam Gabryś 2017-01-08