Thursday, April 16, 2015

Re: GSS condition with Variable not working ?

define-configuration-property name="BLA" is-multi-valued="false" /> 
<set-configuration-property name="BLA" value="true" /> 

@if (BLA) {
  html {background-color: #FF00FF;}
}

This feature has been implemented after GWT 2.7 and will be available in GWT 2.8. We should modify the documentation to reflect that. Sorry for the confusion.


> Any idea this will be supported in the future ? (or maybe already planned)
If you are talking about:

@def BLA1 is("browser.engine",  "webkit");
@if (BLA1) {
    
... some styles {
}

I don't think this feature will be implemented one day. The reason is simple: you can use conditional to define value of a constants, so conditional cannot depend of a constant. (or in other words: conditionals are evaluated before evaluating the constants)

Julien


On Thursday, April 16, 2015 at 4:24:15 PM UTC+2, Ed wrote:
Seems like you have to stick with @if(is("browser.engine", "webkit")) then.
Thanks Jens. I was afraid of that.
Any idea this will be supported in the future ? (or maybe already planned)

--
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/d/optout.

No comments:

Post a Comment