How to detect (-webkit) overflow scrolling without Modernizr
For those who want to detect if a (touch) browser supports the overflow-scrolling property for ‘native style momentum scrolling’ i’ve written a little script that doesn’t need any dependencies like Modernizr.
Paul Irish
The prefixes are incorrect. It’ll work in WebKit because it aliases to the lowercase but for Mozilla and Opera this will fail. https://github.com/Modernizr/Modernizr/blob/a6f2cdf80b18a119866ca40d1d0aa000cc492cd0/modernizr.js#L63-L74
Also this requires the body to be present, so you can’t run this in the head.
Fix those and you’ll still have at least one major problem.
What makes you so averse to dependencies? :/