IE hacks in CssResource

63 views
Skip to first unread message

Shaun Tarves

unread,
Jun 19, 2012, 3:13:25 PM6/19/12
to google-we...@googlegroups.com
I would like to include some IE-specific hacks in my CssResource. Something along the lines of:

*header {width:290px;height:200px;background:#000;}

However, the GWT CSS compiler throws warnings when it encounters one.

In some cases, the user.agent is not specific enough (for example, it doesn't have an ie7 value), and certain hacks *, /9, _, etc are necessary in those cases.

Is there a proper way to pass these hacks through the CSS compiler that doesn't include user.agent checking?

Thomas Broyer

unread,
Jun 19, 2012, 5:47:04 PM6/19/12
to google-we...@googlegroups.com
You can do the check in a static method and then use that in the @if condition. 
Reply all
Reply to author
Forward
0 new messages