PageSourceSearch

https://www.arbo.org/dist-v1/bower_components/modernizr/js/css-scrollbars.js

js arbo.org collected 2026-10-02 10:06:01 UTC 427 bytes, 19 lines download raw bytes

vendor: 427 bytes, lines 1-19
1// Stylable scrollbars detection
2Modernizr.addTest('cssscrollbar', function() {
3
4	var bool,
5
6		styles = "#modernizr{overflow: scroll; width: 40px }#" +
7			Modernizr._prefixes
8				.join("scrollbar{width:0px}"+' #modernizr::')
9				.split('#')
10				.slice(1)
11				.join('#') + "scrollbar{width:0px}";
12
13	Modernizr.testStyles(styles, function(node) {
14		bool = 'scrollWidth' in node && node.scrollWidth == 40;
15	});
16
17	return bool;
18
19});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.