Tuesday, February 12, 2013

jquery 1.9 removes browser detection - answer modernizr

From my little bit of research.....

Javascript browser detection is not fail safe (since some websites/browsers can apply a different browser identity thus wrong styling).  Modernizr detects what css attributes the browser supports and (from your stylesheet) applies the most advanced attribute (like css3) and if the browser doesn't support that feature it will go to a fallback class.  
It seems pretty new since I'm still trying to figure how to detect ":nth-child".  But there are some resources with a bit of google searching. 

No comments:

Post a Comment