1
// Sticky positioning - constrains an element to be positioned inside the
2
// intersection of its container box, and the viewport.
3
Modernizr.addTest('csspositionsticky', function () {
5
var prop = 'position:';
7
var el = document.createElement('modernizr');
10
mStyle.cssText = prop + Modernizr._prefixes.join(value + ';' + prop).slice(0, -prop.length);
12
return mStyle.position.indexOf(value) !== -1;