Monday, September 26, 2011

sevaral bugs with cssresource (try not to repeat known issues)

Hi,

@if user.agent

I try to make conditional if with user.agent in cssresources, i make
this example and it doesn' work in ie7 :

@if user.agent ie7{
.cssname{
font-style: bold;
}
}

however when I write "ie6" before "ie7" (as in this example code), it
works properly for ie7:

@if user.agent ie6 ie7{
.cssname{
font-style: bold;
}
}

I was trying with other user.agent too like firefox, chrome... And it
only works with user.agent safari gecko1_8 but not for others. There
is no repported problem, so I don't know what's happened.
any idea?

Another cuestion:

to solve this problem I use a class that correctly detect the
user.agent of my browser and i use this code:

@if (com.banana.client.resources.css.CssAgentDetector.isIE6_7()){
.cssname{
font-style: bold;
}
}

but the code above doesn't work: the error says there are two
parenthesis which are expected to be closed. And i do a workaround:

@if (com.banana.client.resources.css.CssAgentDetector.isIE6_7())){
.cssname{
font-style: bold;
}
}

the extra parentheses is necesary to make it works properly, i dont
know why, the css parser is buggy?

thx in advice!

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment