frontend/.pnpm-store/v3/files/a9/30e835fa749509f8a2082da9c8cdb64e4bedc07f76a27af3de01af4b437404c9658e2d5140eccd210c56ba9dc1fdb94a917a5c35a75ef81c86e4046ce4f382

20 lines
427 B
Plaintext

// 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;
});