Wednesday, November 20, 2013

CSS syntax issue

hi,

in my css file I have the following entry:

css:
.disabledImg {
  opacity: 0.4;
  filter: alpha(opacity=40);
}

html:
<img class="disabledImg" ....../>

The filter: .... entry is for IE versions  <= 8 to handle opacity.

I get warnings from the GWT compiler:
 [WARN] ... 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>
 
And the css class seems to not work. In the end I had to add the filter...  statement to the style attribute of the img tag.

TIA
Kibu

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment