add bower components to third party
This commit is contained in:
19
third_party/ui/bower_components/modernizr/feature-detects/css-scrollbars.js
vendored
Normal file
19
third_party/ui/bower_components/modernizr/feature-detects/css-scrollbars.js
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// Stylable scrollbars detection
|
||||
Modernizr.addTest('cssscrollbar', function() {
|
||||
|
||||
var bool,
|
||||
|
||||
styles = "#modernizr{overflow: scroll; width: 40px }#" +
|
||||
Modernizr._prefixes
|
||||
.join("scrollbar{width:0px}"+' #modernizr::')
|
||||
.split('#')
|
||||
.slice(1)
|
||||
.join('#') + "scrollbar{width:0px}";
|
||||
|
||||
Modernizr.testStyles(styles, function(node) {
|
||||
bool = 'scrollWidth' in node && node.scrollWidth == 40;
|
||||
});
|
||||
|
||||
return bool;
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user