Similarly I have an issue with setting transparency.
Outside of using Uibinding I would use the following css class:
.inactiveArrow{filter: alpha(opacity=40); opacity: 0.4;}
However when I try to compile it with a UiBinding I get the same
message:
[java] The following problems were detected
[java] [WARN] Line 4 column 52: encountered
"=". Was expecting one of: "+" "-" "," "/" ")" <STRING> <IDENT>
<NUMBER> <URL> <PERCENTAGE> <PT> <MM> <CM> <PC> <IN> <PX> <EMS> <EXS>
<DEG> <RAD> <GRAD> <MS> <SECOND> <HZ> <KHZ> <DIMEN> <HASH>
<UNICODERANGE> <FUNCTION>
[java] [WARN] Line 6 column 47: encountered
"=". Was expecting one of: "+" "-" "," "/" ")" <STRING> <IDENT>
<NUMBER> <URL> <PERCENTAGE> <PT> <MM> <CM> <PC> <IN> <PX> <EMS> <EXS>
<DEG> <RAD> <GRAD> <MS> <SECOND> <HZ> <KHZ> <DIMEN> <HASH>
<UNICODERANGE> <FUNCTION>
It is valid css, and needed to get the same behaviour on IE as in
Firefox.
I can work around not having '_' in my classnames, but how do you work
around not being able to have '=' in the rules?
On Jan 19, 11:56 am, Arkady <[email protected]> wrote:
> Hello,
>
> I am trying to define a constant in the css file with name CPU_COLOR,
> similarly to the example given in the ClientBundle documentation (@def
> CPU_COLOR #99cc00;). When I am trying to compile I get an error:
>
> [java] Preparing method css
> [java] The following problems were detected
> [java] [WARN] Line 1 column 12: encountered
> "_". Was expecting one of: "}" "+" "-" "," ";" "/" <STRING> <IDENT>
> <NUMBER> <URL> <PERCENTAGE> <PT> <MM> <CM> <PC> <IN> <PX> <EMS> <EXS>
> <DEG> <RAD> <GRAD> <MS> <SECOND>
> <HZ> <KHZ> <DIMEN> <HASH> <IMPORTANT_SYM> <UNICODERANGE> <FUNCTION>
> [java] Parsing CSS stylesheet file:/C:/.../
> dmc.css
> [java] [ERROR] Unable to parse CSS
> [java] org.w3c.css.sac.CSSException: @def rules must specify an
> identifier
> and one or more values
> [java] at com.google.gwt.resources.css.GenerateCssAst
> $GenerationHandler
> .parseDef(GenerateCssAst.java:346)
>
> If I remove the "_" from the constant name the compilation succeeds.
> The same problem I had before when I tried to define a css class name
> with "_" in the middle of the name.
>
> Am I doing something illegal or is it a GWT compiler bug?
>
> Any help will be greatly appreciated.
>
> Best regards,
>
> Arkady.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
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.