-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
content: url fails to compile #34
Comments
You are missing quotes in the url var. It should be something like this: |
That said, it could be the error should be more descriptive... |
Hmm. It seems like unquoted urls are allowed in HTML CSS: https://developer.mozilla.org/en-US/docs/Web/CSS/url |
Right, in fact we need to support unquouted, since this is related to bug #35 |
But regarding you proposed solution I tried to use it with quotes and it doesn't work. |
Hi Alex, This is working now, thanks! |
Hi,
while
content: "Hello";
is compiled right, this other:
content: url(assets/checkbox-tick.svg);
Fails with the following error:
Internal error: java.lang.ClassCastException: org.apache.royale.compiler.internal.css.CSSURLAndFormatPropertyValue cannot be cast to org.apache.royale.compiler.internal.css.CSSStringPropertyValue org.apache.royale.compiler.internal.css.CSSProperty.toCSSString(CSSProperty.java:77)
I'll try to do this in other way, but for now it seems the best way to create the tick in a checkbox via svg. Tested modifying the CSS live on the browser works great. Hope you could fix this
Thanks
The text was updated successfully, but these errors were encountered: