I'm trying to use some css3 media queries in my GWT app via a
CssResource and StyleInjector e.g.

@media screen and (color) {

...

}

Unfortunately GWT’s CssResource doesn't yet support this - it strips
out the bit it doesn't understand and outputs:

@MEDIA screen{}

…removing any rules I declared inside.

I also came across a similar "thing" when trying to use vendor
specific extensions, but found a working around that caused the GWT
compiler to ignore them (I escaped the starting hyphen e.g. \-moz-
inline-box).

I find the W3C spec a bit ambiguous:

Quote: "An initial dash or underscore is guaranteed never to be used
in a property or keyword by any current or future level of CSS. Thus
typical CSS implementations may not recognize such properties and may
ignore them according to the rules for handling parsing
errors."  (Note usage of "may" and "may not" - are they errors or
not?)

So...

My question is does anyone know of a way I can get the GWT Compiler to
recognise my media queries?

Cheers,
Dave
--~--~---------~--~----~------------~-------~--~----~
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