frontend/.pnpm-store/v3/files/60/4b8c8383cb8e2c4285cca4fa1f7da94b95c7058e3ea3e93578ced33afc8189d1b80b47d081ee2b333c4a61e2f527caac08232463bbba391204c82f49c0e50f

14 lines
468 B
Plaintext

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