Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

sticky test. just formatting.

  • Loading branch information...
commit 47d4b97ea9e94961857e67f6750ac2f181dc78da 1 parent cfd831f
@paulirish paulirish authored
Showing with 13 additions and 10 deletions.
  1. +13 −10 feature-detects/css-positionsticky.js
View
23 feature-detects/css-positionsticky.js
@@ -1,10 +1,13 @@
-// 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:',
- value = 'sticky',
- el = document.createElement('modernizr'),
- mStyle = el.style;
- mStyle.cssText = prop + Modernizr._prefixes.join(value + ';' + prop).slice(0, -prop.length);
- return mStyle.position.indexOf(value) !== -1;
-});
+// 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;
+});
Please sign in to comment.
Something went wrong with that request. Please try again.