repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/mocks/lib/build-query.js | test/mocks/lib/build-query.js | define([], function() {
return function() {
return '?--dontmin';
};
});
| javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/mocks/lib/metadata.js | test/mocks/lib/metadata.js | define([], [
{
'name': 'Box Sizing',
'property': 'boxsizing',
'caniuse': 'css3-boxsizing',
'polyfills': [],
'tags': [],
'builderAliases': [],
'notes': [{
'name': 'MDN Docs',
'href': 'https://developer.mozilla.org/en/CSS/box-sizing'
}],
'doc': '<p>Detects support for the... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/node/lib/cli.js | test/node/lib/cli.js | var root = require('find-parent-dir').sync(__dirname, 'package.json');
var cp = require('child_process');
var Modernizr = require(root + 'lib/cli');
var chai = require('chai');
var expect = chai.expect;
describe('cli', function() {
it('exposes a build function', function() {
expect(Modernizr.build).to.be.a('fun... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/node/lib/build.js | test/node/lib/build.js | var root = require('find-parent-dir').sync(__dirname, 'package.json');
var build = require(root + 'lib/build');
var chai = require('chai');
var expect = chai.expect;
describe('cli/build', function() {
it('should build without error', function() {
expect(function() {build();}).to.not.throw();
});
describe('... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/node/lib/metadata.js | test/node/lib/metadata.js | var root = require('find-parent-dir').sync(__dirname, 'package.json');
var proxyquire = require('proxyquire').noPreserveCache();
var metadata = require(root + 'lib/metadata');
var chai = require('chai');
var expect = chai.expect;
var Joi = require('joi');
describe('cli/metadata', function() {
it('should ignore .DS_... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/node/lib/options.js | test/node/lib/options.js | var root = require('find-parent-dir').sync(__dirname, 'package.json');
var options = require(root + 'lib/options');
var chai = require('chai');
var expect = chai.expect;
var Joi = require('joi');
var schema = Joi.array().items(
Joi.object().keys({
name: Joi.string(),
property: Joi.string()
})
);
describe(... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/universal/lib/build-query.js | test/universal/lib/build-query.js | var projectRoot;
var filesRoot;
var cleanup;
var req;
if (typeof define !== 'function') {
projectRoot = require('find-parent-dir').sync(__dirname, 'package.json');
filesRoot = projectRoot;
if (process.env.APP_DIR_FOR_CODE_COVERAGE) {
filesRoot = filesRoot + process.env.APP_DIR_FOR_CODE_COVERAGE;
}
var re... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/universal/lib/generate-banner.js | test/universal/lib/generate-banner.js | var projectRoot;
var filesRoot;
var domain;
var generateBanner;
var cleanup;
var def;
var pkg;
var _;
if (typeof define !== 'function') {
var requirejs = require('requirejs');
var chai = require('chai');
var expect = chai.expect;
projectRoot = require('find-parent-dir').sync(__dirname, 'package.json');
files... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/setup.js | test/browser/setup.js | /*global __coverage__*/
$(document).ready(function() {
var runner = mocha.run();
var results = {
passed: 0,
failed: 0,
total: 0,
tests: []
};
runner.once('suite', function() {
mocha.suite.afterAll('send coverage', function(done) {
// ensure timeout errors block normal reporting, to ... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/svgUnit.js | test/browser/svgUnit.js | describe('svg context unit tests', function() {
var svgContext;
var cleanup;
var object;
var req;
if ('createElementNS' in document) {
var setup = function(settings) {
var stringified = settings.stringified;
var instrumented = !!stringified.match(/__cov_/);
if (instrumented) {
... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/integration/classes.js | test/browser/integration/classes.js | describe('classes', function() {
var classes = document.documentElement.className.split(' ');
it('_version exists', function() {
expect(Modernizr._version).to.not.be.equal(undefined);
});
it('_version did not add a class', function() {
expect(document.documentElement.className).to.not.contain('_versio... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/integration/global.js | test/browser/integration/global.js | describe('basics', function() {
it('creates a global modernizr object', function() {
expect(Modernizr).to.not.be.equal(undefined);
});
});
| javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/integration/prefixed.js | test/browser/integration/prefixed.js | describe('prefixed()', function() {
// Generic control function used for prefixed() and prefixedCSS() tests
// https://gist.github.com/523692
function gimmePrefix(prop, obj) {
var prefixes = ['Khtml', 'Webkit', 'ms', 'O', 'Moz'],
domPrefixes = ['khtml', 'webkit', 'ms', 'o', 'moz'],
elem = documen... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/integration/prefixed-autobind.js | test/browser/integration/prefixed-autobind.js | describe('prefixed autobind', function() {
var rAFName;
// quick sniff to find the local rAF prefixed name.
var vendors = ['r', 'msR', 'mozR', 'webkitR', 'oR'];
_.forEach(vendors, function(vendor) {
rAFName = rAFName || (window[vendor + 'equestAnimationFrame'] && vendor + 'equestAnimationFrame');
});
... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/integration/svg.js | test/browser/integration/svg.js | describe('svg context', function() {
var object;
this.timeout(20000);
if ('createElementNS' in document) {
it('is able to be loaded in a SVG file', function(done) {
object = document.createElement('object');
object.data = '../test/img/integration.svg';
object.type = 'image/svg+xml';
... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/integration/iframe.js | test/browser/integration/iframe.js | describe('iframe context', function() {
this.timeout(20000);
var iframeWindow;
var $iframe;
before(function(done) {
var url = './iframe.html?id=modernizrIframeContext';
$iframe = $('<iframe>');
$(document.body).append($iframe);
$iframe
.css({
'height': 10,
'width': 10,
... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/integration/prefixedCSS.js | test/browser/integration/prefixedCSS.js | describe('prefixedCSS', function() {
function gimmePrefix(prop, obj) {
var prefixes = ['Moz', 'Khtml', 'Webkit', 'O', 'ms'],
domPrefixes = ['moz', 'khtml', 'webkit', 'o', 'ms'],
elem = document.createElement('div'),
upper = prop.charAt(0).toUpperCase() + prop.slice(1),
len;
if (!obj) ... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/integration/caniuse.js | test/browser/integration/caniuse.js | /*global UAParser*/
window.caniusecb = function(caniuse) {
var ua = new UAParser(navigator.userAgent).getResult();
if (ua.browser.name === 'Chrome Headless') {
// TODO:: We could test against the caniuse data of the standard Chrome browser but there are currently three
// errors already present (focuswithi... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/integration/prefixed-atRule.js | test/browser/integration/prefixed-atRule.js | describe('prefixed @rule', function() {
it('(Almost) Everyone supports import', function() {
expect(['@import', undefined]).to.contain(Modernizr.prefixed('@import'));
});
it('Nobody supports @penguin', function() {
expect(!!Modernizr.prefixed('@penguin')).to.be.equal(false);
});
});
| javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/integration/bools.js | test/browser/integration/bools.js | describe('bools', function() {
it('all properties are lower case', function() {
_.every(Modernizr, function(result, name) {
return expect(name).to.not.match(/[A-Z]/);
});
});
describe('everythings ship shape', function() {
_.chain(Modernizr)
.keys()
.filter()
.sort()
.fo... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/testXhrType.js | test/browser/src/testXhrType.js | describe('testXhrType', function() {
var cleanup;
var req;
before(function(done) {
req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {
cleanup: '../test/cleanup'
}
});
req(['cleanup'], function(_cleanup) {
cleanup = ... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/html5printshiv.js | test/browser/src/html5printshiv.js | describe('html5printshiv', function() {
this.timeout(10000);
var iframeWindow;
var $iframe;
before(function(done) {
var url = './iframe.html?id=printshiv';
$iframe = $('<iframe>');
$(document.body).append($iframe);
$iframe
.css({
'height': 10,
'width': 10,
'posit... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/testProp.js | test/browser/src/testProp.js | describe('testProp', function() {
var ModernizrProto = {};
var testProp;
var testProps;
var cleanup;
var sinon;
var req;
before(function(done) {
req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {
sinon: '../node_modules/sinon/pk... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/docElement.js | test/browser/src/docElement.js | describe('docElement', function() {
var docElement;
var cleanup;
before(function(done) {
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
req(['docElement', 'cleanup'], function(_docElement, _cleanu... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/roundedEquals.js | test/browser/src/roundedEquals.js | describe('roundedEquals', function() {
var roundedEquals;
var cleanup;
before(function(done) {
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
req(['roundedEquals', 'cleanup'], function(_roundedEqu... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/testDOMProps.js | test/browser/src/testDOMProps.js | describe('testDOMProps', function() {
var elm = document.createElement('div');
var testDOMProps;
var cleanup;
var req;
before(function(done) {
req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
req(['... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/classes.js | test/browser/src/classes.js | describe('classes', function() {
var classes;
var cleanup;
before(function(done) {
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
req(['classes', 'cleanup'], function(_classes, _cleanup) {
c... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/ModernizrProto.js | test/browser/src/ModernizrProto.js | describe('ModernizrProto', function() {
var ModernizrProto;
var cleanup;
var tests;
var req;
before(function() {
define('package', [], function() {return {version: 'v9999'};});
req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: ... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/atRule.js | test/browser/src/atRule.js | describe('atRule', function() {
var atRule;
var cleanup;
before(function(done) {
if (window.CSSRule) {
window.CSSRule.MODERNIZR_FAKE_RULE = 999;
}
var prefixes = ['Modernizr'];
define('cssomPrefixes', [], function() {return prefixes;});
define('package', [], function() {return {};});... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/hasOwnProp.js | test/browser/src/hasOwnProp.js | describe('hasOwnProp', function() {
var hasOwnProp;
var cleanup;
before(function(done) {
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
req(['hasOwnProp', 'cleanup'], function(_hasOwnProp, _cleanu... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/hasEvent.js | test/browser/src/hasEvent.js | describe('hasEvent', function() {
var hasEvent;
var cleanup;
var req;
before(function(done) {
define('package', [], function() {return {};});
req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
req(... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/setClasses.js | test/browser/src/setClasses.js | describe('setClasses', function() {
/*
eslint no-unused-vars: ["error", {
"varsIgnorePattern": "setClasses"
}]
*/
var setClasses;
var cleanup;
var elm;
var req;
var setup = function(done, config, defaultClassName) {
return (function() {
var modConfig = {_config: config};
el... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/mStyle.js | test/browser/src/mStyle.js | describe('mStyle', function() {
var Modernizr;
var mStyle;
var cleanup;
var req;
before(function() {
req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
});
beforeEach(function(done) {
Modernizr =... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/generate.js | test/browser/src/generate.js | describe('generate', function() {
var generate;
var cleanup;
before(function(done) {
define('package', [], function() {return {};});
define('Modernizr', [], function() {return {};});
define('testRunner', [], function() {return {};});
define('lodash', [], function() {return window._;});
defin... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/html5shiv.js | test/browser/src/html5shiv.js | describe('html5shiv', function() {
this.timeout(30000);
var iframeWindow;
var $iframe;
before(function(done) {
var url = './iframe.html?id=shiv';
$iframe = $('<iframe>');
$(document.body).append($iframe);
$iframe
.css({
'height': 10,
'width': 10,
'position': 'abs... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/createElement.js | test/browser/src/createElement.js | describe('createElement', function() {
var createElement;
var cleanup;
before(function(done) {
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
req(['createElement', 'cleanup'], function(_createElem... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/prefixed.js | test/browser/src/prefixed.js | describe('prefixed', function() {
var ModernizrProto;
var testPropsAll;
var prefixed;
var cssToDOM;
var cleanup;
var atRule;
var sinon;
var req;
before(function(done) {
req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {
sino... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/domToCSS.js | test/browser/src/domToCSS.js | describe('domToCSS', function() {
var domToCSS;
var cleanup;
before(function(done) {
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
req(['domToCSS', 'cleanup'], function(_domToCSS, _cleanup) {
... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/is.js | test/browser/src/is.js | describe('is', function() {
var cleanup;
var is;
before(function(done) {
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
req(['is', 'cleanup'], function(_is, _cleanup) {
is = _is;
clean... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/mq.js | test/browser/src/mq.js | describe('mq', function() {
var injectElementWithStyles;
var mq;
var cleanup;
var sinon;
var req;
var media = window.matchMedia || (function() {
// adapted from jQuery Mobile
// http://git.io/NFWo
var bool;
var docElem = document.documentElement;
var refNode = docElem.firstElementChild... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/prefixedCSSValue.js | test/browser/src/prefixedCSSValue.js | describe('prefixedCSSValue', function() {
var prefixedCSSValue;
var cleanup;
before(function(done) {
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
req(['cleanup', 'prefixedCSSValue'], function(_c... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/testAllProps.js | test/browser/src/testAllProps.js | describe('testAllProps', function() {
var ModernizrProto = {};
var testAllProps;
var testPropsAll;
var cleanup;
var sinon;
var req;
before(function(done) {
req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {
sinon: '../node_modul... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/injectElementWithStyles.js | test/browser/src/injectElementWithStyles.js | describe('injectElementWithStyles', function() {
/*
eslint no-unused-vars: ["error", {
"varsIgnorePattern": "sinon"
}]
*/
var injectElementWithStyles;
var originalBody;
var parentNode;
var cleanup;
var sinon;
before(function(done) {
define('package', [], function() {return {};});
... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/inputElem.js | test/browser/src/inputElem.js | describe('inputElem', function() {
var inputElem;
var cleanup;
before(function(done) {
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
req(['inputElem', 'cleanup'], function(_inputElem, _cleanup) {... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/tests.js | test/browser/src/tests.js | describe('tests', function() {
var tests;
var cleanup;
before(function(done) {
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
req(['tests', 'cleanup'], function(_tests, _cleanup) {
tests = _... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/testStyles.js | test/browser/src/testStyles.js | describe('testStyles', function() {
var injectElementWithStyles;
var ModernizrProto;
var cleanup;
before(function(done) {
define('ModernizrProto', [], function() {return {};});
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanu... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/domPrefixes.js | test/browser/src/domPrefixes.js | describe('domPrefixes', function() {
/*
eslint no-unused-vars: ["error", {
"varsIgnorePattern": "domPrefixes"
}]
*/
var domPrefixes;
var domPrefixesAll;
var cleanup;
var req;
var setup = function(done, bool) {
return (function() {
define('ModernizrProto', [], function() {return {_... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/addTest.js | test/browser/src/addTest.js | describe('addTest', function() {
var ModernizrProto;
var setClasses;
var Modernizr;
var addTest;
var cleanup;
var sinon;
var req;
before(function(done) {
req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {
sinon: '../node_modul... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/getBody.js | test/browser/src/getBody.js | describe('getBody', function() {
var getBody;
var cleanup;
before(function(done) {
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
req(['getBody', 'cleanup'], function(_getBody, _cleanup) {
g... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/prefixedCSS.js | test/browser/src/prefixedCSS.js | describe('prefixedCSS', function() {
var ModernizrProto = {_config: {usePrefixes: true}, _q: []};
var prefixedCSS;
var cleanup;
before(function(done) {
define('ModernizrProto', [], function() {return ModernizrProto;});
define('package', [], function() {return {version: 'v9999'};});
var req = requi... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/omPrefixes.js | test/browser/src/omPrefixes.js | describe('omPrefixes', function() {
var omPrefixes;
var cleanup;
before(function(done) {
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
req(['omPrefixes', 'cleanup'], function(_omPrefixes, _cleanu... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/prefixes.js | test/browser/src/prefixes.js | describe('prefixes', function() {
/*
eslint no-unused-vars: ["error", {
"varsIgnorePattern": "prefixes"
}]
*/
var prefixes;
var cleanup;
var req;
var setup = function(done, bool) {
return (function() {
define('ModernizrProto', [], function() {return {_config: {usePrefixes: bool}};})... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/fnBind.js | test/browser/src/fnBind.js | describe('fnBind', function() {
var fnBind;
var cleanup;
before(function(done) {
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
req(['fnBind', 'cleanup'], function(_fnBind, _cleanup) {
fnBin... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/testProps.js | test/browser/src/testProps.js | describe('testProps', function() {
var ModernizrProto = {foo: 7};
var Modernizr = {_q: []};
var testProps;
var cleanup;
var sinon;
var req;
before(function(done) {
req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {
sinon: '../no... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/Modernizr.js | test/browser/src/Modernizr.js | describe('Modernizr Base', function() {
var modernizrBase;
var cleanup;
before(function(done) {
define('package', [], function() {return {};});
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/testRunner.js | test/browser/src/testRunner.js | describe('testRunner', function() {
var Modernizr = {};
var cleanup;
var req;
before(function(done) {
req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
define('Modernizr', [], function() {return Modern... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/toStringFn.js | test/browser/src/toStringFn.js | describe('toStringFn', function() {
var toStringFn;
var cleanup;
before(function(done) {
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
req(['toStringFn', 'cleanup'], function(_toStringFn, _cleanu... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/cssomPrefixes.js | test/browser/src/cssomPrefixes.js | describe('cssomPrefixes', function() {
/*
eslint no-unused-vars: ["error", {
"varsIgnorePattern": "cssomPrefixes"
}]
*/
var cssomPrefixes;
var cleanup;
var req;
var setup = function(done, bool) {
return (function() {
define('ModernizrProto', [], function() {return {_config: {usePref... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/modElem.js | test/browser/src/modElem.js | describe('modElem', function() {
var Modernizr;
var modElem;
var cleanup;
var req;
beforeEach(function(done) {
Modernizr = {_q: []};
define('Modernizr', [], function() {return Modernizr;});
req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/nativeTestProps.js | test/browser/src/nativeTestProps.js | describe('nativeTestProps', function() {
var nativeTestProps;
var cleanup;
before(function(done) {
define('package', [], function() {return {};});
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/testPropsAll.js | test/browser/src/testPropsAll.js | describe('testPropsAll', function() {
var ModernizrProto = {_config: {}};
var Modernizr = {_q: []};
var testPropsAll;
var testDOMProps;
var testProps;
var cleanup;
var req;
before(function(done) {
req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/cssToDOM.js | test/browser/src/cssToDOM.js | describe('cssToDOM', function() {
var cssToDOM;
var cleanup;
before(function(done) {
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
req(['cssToDOM', 'cleanup'], function(_cssToDOM, _cleanup) {
... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/contains.js | test/browser/src/contains.js | describe('contains', function() {
var contains;
var cleanup;
before(function(done) {
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
req(['contains', 'cleanup'], function(_contains, _cleanup) {
... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/slice.js | test/browser/src/slice.js | describe('slice', function() {
var slice;
var cleanup;
before(function(done) {
var req = requirejs.config({
context: Math.random().toString().slice(2),
baseUrl: '../src',
paths: {cleanup: '../test/cleanup'}
});
req(['slice', 'cleanup'], function(_slice, _cleanup) {
slice = _... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/test/browser/src/load.js | test/browser/src/load.js | describe('load', function() {
/*
eslint no-unused-vars: ["error", {
"varsIgnorePattern": "load"
}]
*/
var ModernizrProto;
var cleanup;
var sinon;
var load;
before(function(done) {
define('ModernizrProto', [], function() {return {};});
var req = requirejs.config({
context: Ma... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/legacy/Gruntfile.js | legacy/Gruntfile.js | var browsers = require('../test/browser/sauce-browsers.json');
var serveStatic = require('serve-static');
module.exports = function(grunt) {
'use strict';
// load grunt dependencies
require('load-grunt-tasks')(grunt);
var browserTests = grunt.file.expand([
'test/universal/**/*.js',
'test/browser/**/*... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/lib/cli.js | lib/cli.js | 'use strict';
module.exports = {
build: require('./build'),
metadata: require('./metadata'),
options: require('./options')
};
| javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/lib/build-query.js | lib/build-query.js | define(['lodash', 'metadata'], function(_, metadata) {
function getDetectObjByAmdPath(amdPath) {
return _.find(metadata, function(detect) {
return detect.amdPath === amdPath || detect.amdPath === 'test/' + amdPath;
});
}
return function generateBuildQuery(config) {
// Format:
// ?-<prop1>-... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/lib/build.js | lib/build.js | // this file configures require.js based on environment
'use strict';
var inBrowser = typeof define === 'function' && typeof define.amd === 'object';
var _extend = function(a, b) {
for (var prop in b) {
var supplied = b[prop];
if (Object.prototype.toString.call(supplied) === '[object Object]') {
a[pro... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/lib/metadata.js | lib/metadata.js | var fs = require('fs');
var file = require('file');
var MarkdownIt = require('markdown-it');
var polyfills = require('./polyfills.json');
var viewRoot = fs.realpathSync(__dirname + '/../feature-detects');
function metadata(cb) {
var tests = [];
var md = new MarkdownIt();
file.walkSync(viewRoot, function(start, d... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/lib/options.js | lib/options.js | var fs = require('fs');
var _ = require('lodash');
var file = require('file');
var jsdoc = require('doctrine');
var srcRoot = fs.realpathSync(__dirname + '/../src');
var commentRE = /^(\s+)?(\/\*)?\*(\/)?\s?/mg;
var jsdocRE = /[^\S\r\n]*\/(?:\*{2})([\W\w]+?)\*\//mg;
var stripComments = function(str) {
return str.rep... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/lib/generate-banner.js | lib/generate-banner.js | define(['lodash', 'package', 'lib/build-query'], function(_, pkg, buildQuery) {
var domain = 'modernizr.com';
if (typeof location !== 'undefined' && 'host' in location) {
domain = location.host;
}
// Return a Modernizr file banner.
// Usage:
// require('banners')(type);
// Arguments:
// type (S... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/mathml.js | feature-detects/mathml.js | /*!
{
"name": "MathML",
"property": "mathml",
"caniuse": "mathml",
"authors": ["Addy Osmani", "Davide P. Cervone", "David Carlisle"],
"knownBugs": ["Firefox < 4 will likely return a false, however it does support MathML inside XHTML documents"],
"notes": [{
"name": "W3C Spec",
"href": "https://www.w... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/vibration.js | feature-detects/vibration.js | /*!
{
"name": "Vibration API",
"property": "vibrate",
"caniuse": "vibration",
"notes": [{
"name": "MDN Docs",
"href": "https://developer.mozilla.org/en/DOM/window.navigator.mozVibrate"
}, {
"name": "W3C Spec",
"href": "https://www.w3.org/TR/vibration/"
}]
}
!*/
/* DOC
Detects support for the... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/serviceworker.js | feature-detects/serviceworker.js | /*!
{
"name": "ServiceWorker API",
"property": "serviceworker",
"caniuse": "serviceworkers",
"notes": [{
"name": "ServiceWorkers Explained",
"href": "https://github.com/slightlyoff/ServiceWorker/blob/master/explainer.md"
}]
}
!*/
/* DOC
ServiceWorkers (formerly Navigation Controllers) are a way to per... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/xdomainrequest.js | feature-detects/xdomainrequest.js | /*!
{
"name": "XDomainRequest",
"property": "xdomainrequest",
"tags": ["cors", "xdomainrequest", "ie9", "ie8"],
"authors": ["Ivan Pan (@hypotenuse)"],
"notes": [{
"name": "MDN Docs",
"href": "https://developer.mozilla.org/en-US/docs/Web/API/XDomainRequest"
}]
}
!*/
/* DOC
Detects support for XDomain... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/typed-arrays.js | feature-detects/typed-arrays.js | /*!
{
"name": "Typed arrays",
"property": "typedarrays",
"caniuse": "typedarrays",
"tags": ["js"],
"authors": ["Stanley Stuart (@fivetanley)"],
"notes": [{
"name": "MDN Docs",
"href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays"
}, {
"name": "Kronos spec",
"href":... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/ie8compat.js | feature-detects/ie8compat.js | /*!
{
"name": "IE8 compat mode",
"property": "ie8compat",
"authors": ["Erich Ocean"]
}
!*/
/* DOC
Detects whether or not the current browser is IE8 in compatibility mode (i.e. acting as IE7).
*/
define(['Modernizr'], function(Modernizr) {
// In this case, IE8 will be acting as IE7. You may choose to remove feat... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/cors.js | feature-detects/cors.js | /*!
{
"name": "Cross-Origin Resource Sharing",
"property": "cors",
"caniuse": "cors",
"authors": ["Theodoor van Donge"],
"notes": [{
"name": "MDN Docs",
"href": "https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS"
}],
"polyfills": ["pmxdr", "ppx", "flxhr"]
}
!*/
/* DOC
Detects suppo... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/emoji.js | feature-detects/emoji.js | /*!
{
"name": "Emoji",
"property": "emoji"
}
!*/
/* DOC
Detects support for emoji character sets.
*/
define(['Modernizr', 'createElement', 'test/canvas/text'], function(Modernizr, createElement) {
Modernizr.addTest('emoji', function() {
if (!Modernizr.canvastext) {
return false;
}
var node = cre... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/fullscreen-api.js | feature-detects/fullscreen-api.js | /*!
{
"name": "Fullscreen API",
"property": "fullscreen",
"caniuse": "fullscreen",
"notes": [{
"name": "MDN Docs",
"href": "https://developer.mozilla.org/en/API/Fullscreen"
}],
"polyfills": ["screenfulljs"],
"builderAliases": ["fullscreen_api"]
}
!*/
/* DOC
Detects support for the ability to make ... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/vml.js | feature-detects/vml.js | /*!
{
"name": "VML",
"property": "vml",
"tags": ["vml"],
"authors": ["Craig Andrews (@candrews)"],
"notes": [{
"name": "W3C Spec",
"href": "https://www.w3.org/TR/NOTE-VML"
}, {
"name": "MSDN Documentation",
"href": "https://docs.microsoft.com/en-us/windows/desktop/VML/msdn-online-vml-introdu... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/proxy.js | feature-detects/proxy.js | /*!
{
"name": "Proxy Object",
"property": "proxy",
"caniuse": "proxy",
"authors": ["Brock Beaudry"],
"notes": [{
"name": "MDN Docs",
"href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy"
}],
"polyfills": [
"harmony-reflect"
]
}
!*/
/* DOC
Detects su... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/htmlimports.js | feature-detects/htmlimports.js | /*!
{
"name": "HTML Imports",
"property": "htmlimports",
"tags": ["html", "import"],
"polyfills": ["polymer-htmlimports"],
"notes": [{
"name": "W3C Spec",
"href": "https://w3c.github.io/webcomponents/spec/imports/"
}, {
"name": "HTML Imports - #include for the web",
"href": "https://www.html... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/webanimations.js | feature-detects/webanimations.js | /*!
{
"name": "Web Animation API",
"property": "webanimations",
"caniuse": "web-animation",
"tags": ["webanimations"],
"polyfills": ["webanimationsjs"],
"notes": [{
"name": "Introducing Web Animations",
"href": "https://birtles.wordpress.com/2013/06/26/introducing-web-animations/"
}]
}
!*/
/* DOC
... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/performance.js | feature-detects/performance.js | /*!
{
"name": "Navigation Timing API",
"property": "performance",
"caniuse": "nav-timing",
"tags": ["performance"],
"authors": ["Scott Murphy (@uxder)"],
"notes": [{
"name": "W3C Spec",
"href": "https://www.w3.org/TR/navigation-timing/"
}, {
"name": "HTML5 Rocks Tutorial",
"href": "https:/... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/ligatures.js | feature-detects/ligatures.js | /*!
{
"name": "Font Ligatures",
"property": "ligatures",
"caniuse": "font-feature",
"notes": [{
"name": "Cross-browser Web Fonts",
"href": "https://www.sitepoint.com/cross-browser-web-fonts-part-3/"
}]
}
!*/
/* DOC
Detects support for OpenType ligatures
*/
define(['Modernizr', 'testAllProps'], functio... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/requestanimationframe.js | feature-detects/requestanimationframe.js | /*!
{
"name": "requestAnimationFrame",
"property": "requestanimationframe",
"aliases": ["raf"],
"caniuse": "requestanimationframe",
"tags": ["animation"],
"authors": ["Addy Osmani"],
"notes": [{
"name": "W3C Spec",
"href": "https://www.w3.org/TR/animation-timing/"
}],
"polyfills": ["raf"]
}
!*... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/history.js | feature-detects/history.js | /*!
{
"name": "History API",
"property": "history",
"caniuse": "history",
"tags": ["history"],
"authors": ["Hay Kranen", "Alexander Farkas"],
"notes": [{
"name": "W3C Spec",
"href": "https://www.w3.org/TR/html51/browsers.html#the-history-interface"
}, {
"name": "MDN Docs",
"href": "https:/... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/custom-protocol-handler.js | feature-detects/custom-protocol-handler.js | /*!
{
"name": "Custom protocol handler",
"property": "customprotocolhandler",
"authors": ["Ben Schwarz"],
"builderAliases": ["custom_protocol_handler"],
"notes": [{
"name": "WHATWG Spec",
"href": "https://html.spec.whatwg.org/dev/system-state.html#custom-handlers"
}, {
"name": "MDN Docs",
"h... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/contenteditable.js | feature-detects/contenteditable.js | /*!
{
"name": "Content Editable",
"property": "contenteditable",
"caniuse": "contenteditable",
"notes": [{
"name": "WHATWG Spec",
"href": "https://html.spec.whatwg.org/multipage/interaction.html#contenteditable"
}]
}
!*/
/* DOC
Detects support for the `contenteditable` attribute of elements, allowing ... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/contextmenu.js | feature-detects/contextmenu.js | /*!
{
"name": "Context menus",
"property": "contextmenu",
"caniuse": "menu",
"notes": [{
"name": "W3C Spec",
"href": "https://www.w3.org/TR/html5/interactive-elements.html#context-menus"
}, {
"name": "thewebrocks.com Demo",
"href": "http://thewebrocks.com/demos/context-menu/"
}],
"polyfill... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/queryselector.js | feature-detects/queryselector.js | /*!
{
"name": "QuerySelector",
"property": "queryselector",
"caniuse": "queryselector",
"tags": ["queryselector"],
"authors": ["Andrew Betts (@triblondon)"],
"notes": [{
"name": "W3C Spec",
"href": "https://www.w3.org/TR/selectors-api/#queryselectorall"
}],
"polyfills": ["css-selector-engine"]
}... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/web-intents.js | feature-detects/web-intents.js | /*!
{
"name": "Web Intents",
"property": "webintents",
"authors": ["Eric Bidelman"],
"notes": [{
"name": "Web Intents project site",
"href": "http://www.webintents.org/"
}],
"builderAliases": ["web_intents"]
}
!*/
/* DOC
Detects native support for the Web Intents APIs for service discovery and inter... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/geolocation.js | feature-detects/geolocation.js | /*!
{
"name": "Geolocation API",
"property": "geolocation",
"caniuse": "geolocation",
"tags": ["media"],
"notes": [{
"name": "MDN Docs",
"href": "https://developer.mozilla.org/en-US/docs/WebAPI/Using_geolocation"
}],
"polyfills": [
"joshuabell-polyfill",
"webshims",
"geo-location-javas... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/custom-elements.js | feature-detects/custom-elements.js | /*!
{
"name": "Custom Elements API",
"property": "customelements",
"caniuse": "custom-elementsv1",
"tags": ["customelements"],
"polyfills": ["customelements"],
"notes": [{
"name": "Specs for Custom Elements",
"href": "https://www.w3.org/TR/custom-elements/"
}]
}
!*/
/* DOC
Detects support for the ... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/lists-reversed.js | feature-detects/lists-reversed.js | /*!
{
"name": "Reverse Ordered Lists",
"property": "olreversed",
"notes": [{
"name": "Impressive Webs article",
"href": "https://www.impressivewebs.com/reverse-ordered-lists-html5/"
}],
"builderAliases": ["lists_reversed"]
}
!*/
/* DOC
Detects support for the `reversed` attribute on the `<ol>` element... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/crypto.js | feature-detects/crypto.js | /*!
{
"name": "Web Cryptography",
"property": "cryptography",
"caniuse": "cryptography",
"tags": ["crypto"],
"authors": ["roblarsen"],
"notes": [{
"name": "W3C Editor's Draft Spec",
"href": "https://www.w3.org/TR/WebCryptoAPI/"
}]
}
!*/
/* DOC
Detects support for the cryptographic functionality av... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/dart.js | feature-detects/dart.js | /*!
{
"name": "Dart",
"property": "dart",
"authors": ["Theodoor van Donge"],
"notes": [{
"name": "Language website",
"href": "https://www.dartlang.org/"
}]
}
!*/
/* DOC
Detects native support for the Dart programming language.
*/
define(['Modernizr', 'prefixed'], function(Modernizr, prefixed) {
Mode... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Modernizr/Modernizr | https://github.com/Modernizr/Modernizr/blob/743092ebbb9c19a5ba8c3cc2c75cf03727921cb1/feature-detects/postmessage.js | feature-detects/postmessage.js | /*!
{
"name": "postMessage",
"property": "postmessage",
"caniuse": "x-doc-messaging",
"notes": [{
"name": "W3C Spec",
"href": "https://www.w3.org/TR/webmessaging/#crossDocumentMessages"
}],
"polyfills": ["easyxdm", "postmessage-jquery"],
"knownBugs": [
"structuredclones - Android 2&3 can not s... | javascript | MIT | 743092ebbb9c19a5ba8c3cc2c75cf03727921cb1 | 2026-01-04T15:04:24.685929Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.