Friday, April 24, 2015

Re: GSS mixin restricted ?

@Julien: thanks for the quick answer.
Stupid of mine not to think about your approach, so simple ;)

Anyway: I tried it, but the GWT/GSS compiler doesn't seem to like the @if conditions inside the @defmixin {}. I get an error :(
My tryout code:

@defmixin slideInToRight() {
@if is("browser.engine",  "webkit") {
-webkit-transform: translate(-40%, 0);
-webkit-transition: transform 1s, opacity 2s;

.Content {
@mixin slideInToRight();

When I remove the inside @if, it works however. But with the inside @if (like above) I do get the following exception:
What to do ? ;) (BTW: I use GWT 2.7.0, sorry, can't try it on the trunc at the moment)

00:07:29,829 [ERROR] Generator '' threw an exception while rebinding 'com.bla.loginflow.resources.LoginFlowResources'
java.lang.IllegalStateException: null at at at at$VisitUnknownAtRuleState.doVisit( at at at at at at at at at at at at$Rebinder.rebind( at at at at at at at

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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment