Exception: Null or negative value for CSS time
Pure Java HTML / CSS rendering engine
Status: Beta
Brought to you by:
radkovo
While trying out a large CSS file I saw this exception:
Caused by: java.lang.IllegalArgumentException: Null or negative value for CSS time at cz.vutbr.web.csskit.TermTimeImpl.setValue(TermTimeImpl.java:14) at cz.vutbr.web.csskit.TermTimeImpl.setValue(TermTimeImpl.java:5) at cz.vutbr.web.csskit.TermFactoryImpl.createDimension(TermFactoryImpl.java:174) at cz.vutbr.web.csskit.antlr.CSSTreeParser.valuepart(CSSTreeParser.java:2322) at cz.vutbr.web.csskit.antlr.CSSTreeParser.term(CSSTreeParser.java:1985) at cz.vutbr.web.csskit.antlr.CSSTreeParser.terms(CSSTreeParser.java:1887) at cz.vutbr.web.csskit.antlr.CSSTreeParser.declaration(CSSTreeParser.java:1717) at cz.vutbr.web.csskit.antlr.CSSTreeParser.declarations(CSSTreeParser.java:1593) at cz.vutbr.web.csskit.antlr.CSSTreeParser.ruleset(CSSTreeParser.java:1528) at cz.vutbr.web.csskit.antlr.CSSTreeParser.statement(CSSTreeParser.java:565) at cz.vutbr.web.csskit.antlr.CSSTreeParser.stylesheet(CSSTreeParser.java:475) at cz.vutbr.web.csskit.antlr.CSSParserFactory$SourceType$2.parse(CSSParserFactory.java:99)
I didn't boil it down to a small test-case yet, but I guess the exception stack trace might be sufficient for you.
thanks!
Anonymous
Hopefully fixed by this commit. I don't have the input data for testing so you should do the tests by yourself.
Thanks for the changes. I boiled down the input to this rule:
I haven't checked yet if your commit works.
I am afraid that the transition property itself is not supported yet. It should be transformed to the transition-* properties but a support needs to be added to cz.vutbr.web.domassign.SupportedCSS3 and DeclarationTransformer
Fix verified: the exception is not thrown with your commit!
The support for transition property was not critical for me. The exception was more critical because the rest of the stylesheet was not getting processed.
You may close this bug as far as the exception is concerned. Thanks!
Closed in 1.20.