Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Error with background shorthand property #14

Open
urbananimal opened this issue Nov 8, 2012 · 2 comments
Open

Error with background shorthand property #14

urbananimal opened this issue Nov 8, 2012 · 2 comments

Comments

@urbananimal
Copy link

If the CSS background shorthand property is used and includes position and size values lesscss-java throws a ClassCastException:

for example - background: url(@url_var) top / cover no-repeat;

output shows:
java.lang.ClassCastException: org.mozilla.javascript.ConsString cannot be cast to java.lang.String at org.lesscss.LessCompiler.compile(LessCompiler.java:251)

@mgarmash
Copy link

mgarmash commented Dec 4, 2012

Caused by: java.lang.ClassCastException: org.mozilla.javascript.ConsString cannot be cast to java.lang.String
at org.lesscss.LessCompiler.compile(LessCompiler.java:251)
at org.lesscss.LessCompiler.compile(LessCompiler.java:302)

// exception
.test {
    filter: alpha(opacity = 100);
}

// fixed version
.test {
    filter: alpha(opacity=100);
}

@cpopov
Copy link
Collaborator

cpopov commented Mar 1, 2013

Hi, can you tests with the current 1.3.3-SNAPSHOT version (not released to maven central). Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants