I've run into the same problem. The workarounds for me are to either
not sprite the image or adjust my style hierarchy such
that .mySpriteClass's rules get a higher precedence.

Ideally we'd like to do something like:
@sprite .mySpriteClass {gwt-image: "imageAccessor" !important; other:
property;}
or possibly
@ImageResource.ImageOptions(importance = super)

On Jan 20, 1:49 am, Michel <[email protected]> wrote:
> Hi.
>
> In the documentation, I can see this:
>
> @sprite .mySpriteClass {gwt-image: "imageAccessor"; other: property;}
> => generates =>
>
>   .mySpriteClass {
>     background-image: url(gen.png);
>     clip: ...;
>     width: 27px;
>     height: 42px;
>     other: property;
>   }
>
> What if I want to generate this:
>  .mySpriteClass {
>     background-image: url(gen.png) !important;
>     ........
>
> How I can add the !importantto the background-image.
> Is there a way to do this?
>
> Tks and regards,
> Michel.

-- 
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.

Reply via email to