You can clone with
HTTPS or Subversion.
adding support for CSS media queries might be cool.
would this basically be .. which media queries are currently accepted in the given view?
here's a good start
we also have a few more over here
matt, if you have more details on how this would work, i'd love to hear 'em
Gee, that was the most uninformative request evar.
My main use-case for this were the becoming-much-more-relevant screen queries being used for mobile browsers, like device-width, max-device-width and especially orientation. Exactly the stuff you're using in your frontend-pro-template.
I think the main one is orientation though - especially if the iPhone continues not to support it: http://www.quirksmode.org/blog/archives/2010/04/the_orientation.html
Scott Jehl has an implementation that requires document.body
Here's an updated version of the function that no longer needs document.body
And looks like Opera did this a bit ago:
and Chrome supports window.media.matchMedia .. e.g.:
Maybe it makes sense to adapt Scott's to be a fallback solution for window.media.matchMedia ..
Right now I prefer its offsetWidth check vs having to use getComputedStyle (in Operas)
Okay so I went ahead and did it:
window.media.matchMedium fallback http://gist.github.com/513213
Oddly Chrome 5 supports matchMedium but Chrome 6 doesnt.
closing this ticket for now.. we're linking it up on the wiki:
thanks everyone. this'll go into the Modernizr 2.0 ecosystem of tests... somehow. :)
media queries test. EZ PZ. fixes #49