Tuesday, March 13, 2012

Re: Using CssResource @def inside some css property with parenthesis not working

Shaun,

I had issues with these @def's last fall. Here is what I learned:

1) Make sure the @def's are placed at the very top of the CSS file, anywhere else and they'll be trouble (this face is not documented).
2) Use the @literal() tag to wrap non-CSS2 props. i.e. background-image: @literal( linear-gradient(top, HEADER_ROW_BACKGROUND_COLOR literal(" 0%"), HEADER_ROW_BACKGROUND_COLOR literal(" 97%"), #7a808a literal(" 100%")) );

The GWT team does not want to write a pure Java CSS3 parser, so you need to do this until they do, or someone else writes one for them to implement.

Sincerely,
Joseph

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/7hYSYRBLKvkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate