This is because the gradient "functions" are not valid CSS2, and GWT uses a 
CSS2 parser for CssResources.
See http://code.google.com/p/google-web-toolkit/issues/detail?id=5771

On Thursday, March 8, 2012 4:43:52 PM UTC+1, Shaun Tarves wrote:
>
> Hi -
>
> I'm having trouble using a defined constant inside of a css property that 
> has its own parenthetical reference. What I mean is:
>
> @def HEADER_ROW_BACKGROUND_COLOR #b2bbc9;
> This works:
>
> background: HEADER_ROW_BACKGROUND_COLOR;
>
> This does not work.
> background-image: linear-gradient(top, HEADER_ROW_BACKGROUND_COLOR literal(" 
> 0%"), HEADER_ROW_BACKGROUND_COLOR literal(" 97%"), #7a808a literal(" 
> 100%"));
>
> The property shows up in web inspector totally fine, EXCEPT that the 2 
> references to the constant are never translated. They just appear as is, 
> strings in all caps. (see attachment)
>
> Is this a known bug of some kind?
>

-- 
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/-/hd3CACzUzPsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to