~caneypuggies/reformedchurcheslocator/couchapp-backbone

« back to all changes in this revision

Viewing changes to _attachments/js/vendor/modernizr/feature-detects/css-positionsticky.js

  • Committer: Tim Black
  • Date: 2013-09-16 22:50:16 UTC
  • Revision ID: tim@alwaysreformed.com-20130916225016-zk8jiba25z33ew7h
Versioned Bower vendor directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 () {
 
4
 
 
5
    var prop = 'position:';
 
6
    var value = 'sticky';
 
7
    var el = document.createElement('modernizr');
 
8
    var mStyle = el.style;
 
9
 
 
10
    mStyle.cssText = prop + Modernizr._prefixes.join(value + ';' + prop).slice(0, -prop.length);
 
11
 
 
12
    return mStyle.position.indexOf(value) !== -1;
 
13
});