mirror of
https://github.com/Modernizr/Modernizr.git
synced 2026-01-09 15:47:55 -05:00
Js doc cleanup (#2333)
* Cleanup note tags * Lots of http -> https conversions * Misc cleanups * Review changes
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
/* DOC
|
||||
Detects support for the Application Cache, for storing data to enable web-based applications run offline.
|
||||
|
||||
The API has been [heavily criticized](http://alistapart.com/article/application-cache-is-a-douchebag) and discussions are underway to address this.
|
||||
The API has been [heavily criticized](https://alistapart.com/article/application-cache-is-a-douchebag) and discussions are underway to address this.
|
||||
*/
|
||||
define(['Modernizr'], function(Modernizr) {
|
||||
Modernizr.addTest('applicationcache', 'applicationCache' in window);
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"builderAliases": ["audio_webaudio_api"],
|
||||
"authors": ["Addy Osmani"],
|
||||
"notes": [{
|
||||
"name": "W3 Specification",
|
||||
"name": "W3 Spec",
|
||||
"href": "https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html"
|
||||
}]
|
||||
}
|
||||
|
||||
@@ -7,18 +7,16 @@
|
||||
"notes": [{
|
||||
"name": "HTML5 Spec",
|
||||
"href": "https://dvcs.w3.org/hg/FXTF/rawfile/tip/compositing/index.html#blending"
|
||||
},
|
||||
{
|
||||
},{
|
||||
"name": "Article",
|
||||
"href": "https://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas"
|
||||
}]
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
/* DOC
|
||||
Detects if Photoshop style blending modes are available in canvas.
|
||||
*/
|
||||
define(['Modernizr', 'createElement', 'test/canvas'], function(Modernizr, createElement) {
|
||||
|
||||
Modernizr.addTest('canvasblending', function() {
|
||||
if (Modernizr.canvas === false) {
|
||||
return false;
|
||||
@@ -31,5 +29,4 @@ define(['Modernizr', 'createElement', 'test/canvas'], function(Modernizr, create
|
||||
|
||||
return ctx.globalCompositeOperation === 'screen';
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
"caniuse": "menu",
|
||||
"notes": [{
|
||||
"name": "W3C spec",
|
||||
"href": "http://www.w3.org/TR/html5/interactive-elements.html#context-menus"
|
||||
"href": "https://www.w3.org/TR/html5/interactive-elements.html#context-menus"
|
||||
},{
|
||||
"name": "thewebrocks.com Demo",
|
||||
"href": "http://thewebrocks.com/demos/context-menu/"
|
||||
"href": "https://thewebrocks.com/demos/context-menu/"
|
||||
}],
|
||||
"polyfills": ["jquery-contextmenu"]
|
||||
}
|
||||
|
||||
@@ -4,20 +4,14 @@
|
||||
"property": "backdropfilter",
|
||||
"authors": ["Brian Seward"],
|
||||
"tags": ["css"],
|
||||
"notes": [
|
||||
{
|
||||
"caniuse": "css-backdrop-filter",
|
||||
"notes": [{
|
||||
"name": "W3C Editor’s Draft specification",
|
||||
"href": "https://drafts.fxtf.org/filters-2/#BackdropFilterProperty"
|
||||
},
|
||||
{
|
||||
"name": "Caniuse for CSS Backdrop Filter",
|
||||
"href": "http://caniuse.com/#feat=css-backdrop-filter"
|
||||
},
|
||||
{
|
||||
},{
|
||||
"name": "WebKit Blog introduction + Demo",
|
||||
"href": "https://www.webkit.org/blog/3632/introducing-backdrop-filters/"
|
||||
}
|
||||
]
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
/* DOC
|
||||
|
||||
@@ -4,15 +4,13 @@
|
||||
"property": "backgroundblendmode",
|
||||
"caniuse": "css-backgroundblendmode",
|
||||
"tags": ["css"],
|
||||
"notes": [
|
||||
{
|
||||
"notes": [{
|
||||
"name": "CSS Blend Modes could be the next big thing in Web Design",
|
||||
"href": " https://medium.com/@bennettfeely/css-blend-modes-could-be-the-next-big-thing-in-web-design-6b51bf53743a"
|
||||
}, {
|
||||
"href": "https://medium.com/@bennettfeely/css-blend-modes-could-be-the-next-big-thing-in-web-design-6b51bf53743a"
|
||||
},{
|
||||
"name": "Demo",
|
||||
"href": "http://bennettfeely.com/gradients/"
|
||||
}
|
||||
]
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
/* DOC
|
||||
|
||||
@@ -4,20 +4,16 @@
|
||||
"property": "backgroundcliptext",
|
||||
"authors": ["ausi"],
|
||||
"tags": ["css"],
|
||||
"notes": [
|
||||
{
|
||||
"notes": [{
|
||||
"name": "CSS Tricks Article",
|
||||
"href": "https://css-tricks.com/image-under-text/"
|
||||
},
|
||||
{
|
||||
},{
|
||||
"name": "MDN Docs",
|
||||
"href": "https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip"
|
||||
},
|
||||
{
|
||||
},{
|
||||
"name": "Related Github Issue",
|
||||
"href": "https://github.com/Modernizr/Modernizr/issues/199"
|
||||
}
|
||||
]
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
/* DOC
|
||||
|
||||
@@ -4,12 +4,11 @@
|
||||
"property": "cubicbezierrange",
|
||||
"tags": ["css"],
|
||||
"builderAliases": ["css_cubicbezierrange"],
|
||||
"doc" : null,
|
||||
"authors": ["@calvein"],
|
||||
"warnings": ["cubic-bezier values can't be > 1 for Webkit until [bug #45761](https://bugs.webkit.org/show_bug.cgi?id=45761) is fixed"],
|
||||
"notes": [{
|
||||
"name": "Comprehensive Compat Chart",
|
||||
"href": "http://muddledramblings.com/table-of-css3-border-radius-compliance"
|
||||
"href": "https://muddledramblings.com/table-of-css3-border-radius-compliance/"
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"builderAliases": ["css_displaytable"],
|
||||
"notes": [{
|
||||
"name": "Detects for all additional table display values",
|
||||
"href": "http://pastebin.com/Gk9PeVaQ"
|
||||
"href": "https://pastebin.com/Gk9PeVaQ"
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"tags": ["css"],
|
||||
"notes": [{
|
||||
"name": "The _new_ flexbox",
|
||||
"href": "http://dev.w3.org/csswg/css3-flexbox"
|
||||
"href": "https://www.w3.org/TR/css-flexbox-1/"
|
||||
}],
|
||||
"warnings": [
|
||||
"A `true` result for this detect does not imply that the `flex-wrap` property is supported; see the `flexwrap` detect."
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"tags": ["css", "flexbox"],
|
||||
"notes": [{
|
||||
"name": "W3C Flexible Box Layout spec",
|
||||
"href": "http://dev.w3.org/csswg/css3-flexbox"
|
||||
"href": "https://www.w3.org/TR/css-flexbox-1/"
|
||||
}],
|
||||
"warnings": [
|
||||
"Does not imply a modern implementation – see documentation."
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
/* DOC
|
||||
Detects support for hidpi/retina hairlines, which are CSS borders with less than 1px in width, for being physically 1px on hidpi screens.
|
||||
*/
|
||||
|
||||
define(['Modernizr', 'testStyles'], function(Modernizr, testStyles) {
|
||||
Modernizr.addTest('hairline', function() {
|
||||
return testStyles('#modernizr {border:.5px solid transparent}', function(elem) {
|
||||
|
||||
@@ -14,13 +14,13 @@
|
||||
],
|
||||
"notes": [{
|
||||
"name": "The Current State of Hyphenation on the Web.",
|
||||
"href": "http://davidnewton.ca/the-current-state-of-hyphenation-on-the-web"
|
||||
"href": "https://davidnewton.ca/the-current-state-of-hyphenation-on-the-web"
|
||||
},{
|
||||
"name": "Hyphenation Test Page",
|
||||
"href": "http://davidnewton.ca/demos/hyphenation/test.html"
|
||||
},{
|
||||
"name": "Hyphenation is Language Specific",
|
||||
"href": " http://code.google.com/p/hyphenator/source/diff?spec=svn975&r=975&format=side&path=/trunk/Hyphenator.js#sc_svn975_313"
|
||||
"href": "http://code.google.com/p/hyphenator/source/diff?spec=svn975&r=975&format=side&path=/trunk/Hyphenator.js#sc_svn975_313"
|
||||
},{
|
||||
"name": "Related Modernizr Issue",
|
||||
"href": "https://github.com/Modernizr/Modernizr/issues/312"
|
||||
|
||||
@@ -5,24 +5,19 @@
|
||||
"property": "cssmask",
|
||||
"tags": ["css"],
|
||||
"builderAliases": ["css_mask"],
|
||||
"notes": [
|
||||
{
|
||||
"notes": [{
|
||||
"name": "Webkit blog on CSS Masks",
|
||||
"href": "https://webkit.org/blog/181/css-masks/"
|
||||
},
|
||||
{
|
||||
},{
|
||||
"name": "Safari Docs",
|
||||
"href": "https://developer.apple.com/library/safari/#documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/Masks/Masks.html"
|
||||
},
|
||||
{
|
||||
},{
|
||||
"name": "CSS SVG mask",
|
||||
"href": "https://developer.mozilla.org/en-US/docs/Web/CSS/mask"
|
||||
},
|
||||
{
|
||||
},{
|
||||
"name": "Combine with clippaths for awesomeness",
|
||||
"href": "https://generic.cx/for/webkit/test.html"
|
||||
}
|
||||
]
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
define(['Modernizr', 'testAllProps'], function(Modernizr, testAllProps) {
|
||||
|
||||
@@ -4,16 +4,13 @@
|
||||
"caniuse": "css-sel3",
|
||||
"property": "nthchild",
|
||||
"tags": ["css"],
|
||||
"notes": [
|
||||
{
|
||||
"notes": [{
|
||||
"name": "Related Github Issue",
|
||||
"href": "https://github.com/Modernizr/Modernizr/pull/685"
|
||||
},
|
||||
{
|
||||
},{
|
||||
"name": "Sitepoint :nth-child documentation",
|
||||
"href": "http://reference.sitepoint.com/css/pseudoclass-nthchild"
|
||||
}
|
||||
],
|
||||
"href": "https://www.sitepoint.com/atoz-css-screencast-nth-child/"
|
||||
}],
|
||||
"authors": ["@emilchristensen"],
|
||||
"warnings": ["Known false negative in Safari 3.1 and Safari 3.2.2"]
|
||||
}
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
"authors": ["ausi"],
|
||||
"tags": ["css"],
|
||||
"builderAliases": ["css_pointerevents"],
|
||||
"notes": [
|
||||
{
|
||||
"notes": [{
|
||||
"name": "MDN Docs",
|
||||
"href": "https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events"
|
||||
},{
|
||||
@@ -16,12 +15,10 @@
|
||||
},{
|
||||
"name": "Test Project Wiki",
|
||||
"href": "https://github.com/ausi/Feature-detection-technique-for-pointer-events/wiki"
|
||||
},
|
||||
{
|
||||
},{
|
||||
"name": "Related Github Issue",
|
||||
"href": "https://github.com/Modernizr/Modernizr/issues/80"
|
||||
}
|
||||
]
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
define(['Modernizr', 'createElement'], function(Modernizr, createElement) {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"href": "https://www.w3.org/TR/css3-values/#relative0"
|
||||
},{
|
||||
"name": "Font Size with rem by Jonathan Snook",
|
||||
"href": "http://snook.ca/archives/html_and_css/font-size-with-rem"
|
||||
"href": "https://snook.ca/archives/html_and_css/font-size-with-rem"
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
"knownBugs": ["IE does not support the 'start' or 'end' values."],
|
||||
"notes": [{
|
||||
"name": "Quirksmode",
|
||||
"href": "http://www.quirksmode.org/css/text/textalignlast.html"
|
||||
"href": "https://www.quirksmode.org/css/text/textalignlast.html"
|
||||
},{
|
||||
"name": "MDN",
|
||||
"href": "https://developer.mozilla.org/en-US/docs/Web/CSS/text-align-last"
|
||||
}]
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
define(['Modernizr', 'testAllProps'], function(Modernizr, testAllProps) {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
define(['Modernizr', 'testAllProps'], function(Modernizr, testAllProps) {
|
||||
Modernizr.addTest('csstransforms', function() {
|
||||
// Android < 3.0 is buggy, so we sniff and blacklist
|
||||
// http://git.io/hHzL7w
|
||||
// https://github.com/Modernizr/Modernizr/issues/903
|
||||
return navigator.userAgent.indexOf('Android 2.') === -1 &&
|
||||
testAllProps('transform', 'scale(1)', true);
|
||||
});
|
||||
|
||||
@@ -3,16 +3,13 @@
|
||||
"name": "CSS wrap-flow",
|
||||
"property": "wrapflow",
|
||||
"tags": ["css"],
|
||||
"notes": [
|
||||
{
|
||||
"notes": [{
|
||||
"name": "W3C Exclusions spec",
|
||||
"href": "https://www.w3.org/TR/css3-exclusions"
|
||||
},
|
||||
{
|
||||
},{
|
||||
"name": "Example by Adobe",
|
||||
"href": "http://html.adobe.com/webstandards/cssexclusions"
|
||||
}
|
||||
]
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
define(['Modernizr', 'prefixed', 'docElement', 'createElement', 'isSVG'], function(Modernizr, prefixed, docElement, createElement, isSVG) {
|
||||
@@ -31,7 +28,7 @@ define(['Modernizr', 'prefixed', 'docElement', 'createElement', 'isSVG'], functi
|
||||
var content = createElement('span');
|
||||
|
||||
/* First we create a div with two adjacent divs inside it. The first div will be the content, the second div will be the exclusion area.
|
||||
We use the "wrap-flow: end" property to test the actual behavior. (http://dev.w3.org/csswg/css3-exclusions/#wrap-flow-property)
|
||||
We use the "wrap-flow: end" property to test the actual behavior. (https://drafts.csswg.org/css-exclusions-1/#wrap-flow-property)
|
||||
The wrap-flow property is applied to the exclusion area what has a 50px left offset and a 100px width.
|
||||
If the wrap-flow property is working correctly then the content should start after the exclusion area, so the content's left offset should be 150px. */
|
||||
exclusion.style.cssText = 'position: absolute; left: 50px; width: 100px; height: 20px;' + wrapFlowProperty + ':end;';
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"href": "http://reference.sitepoint.com/javascript/DocumentFragment"
|
||||
}, {
|
||||
"name": "QuirksMode Compatibility Tables",
|
||||
"href": "http://www.quirksmode.org/m/w3c_core.html#t112"
|
||||
"href": "https://www.quirksmode.org/m/w3c_core.html#t112"
|
||||
}],
|
||||
"authors": ["Ron Waldon (@jokeyrhyme)"],
|
||||
"knownBugs": ["false-positive on Blackberry 9500, see QuirksMode note"],
|
||||
|
||||
@@ -1,26 +1,21 @@
|
||||
/*!
|
||||
{
|
||||
"property": "passiveeventlisteners",
|
||||
"tags": ["dom"],
|
||||
"authors": ["Rick Byers"],
|
||||
"name": "Passive event listeners",
|
||||
"notes": [
|
||||
{
|
||||
"notes": [{
|
||||
"name": "WHATWG specification",
|
||||
"href": "https://dom.spec.whatwg.org/#dom-addeventlisteneroptions-passive"
|
||||
},
|
||||
{
|
||||
},{
|
||||
"name": "WICG explainer",
|
||||
"href": "https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md"
|
||||
}
|
||||
],
|
||||
"property": "passiveeventlisteners",
|
||||
"tags": ["dom"]
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
|
||||
/* DOC
|
||||
Detects support for the passive option to addEventListener.
|
||||
*/
|
||||
|
||||
define(['Modernizr'], function(Modernizr) {
|
||||
Modernizr.addTest('passiveeventlisteners', function() {
|
||||
var supportsPassiveOption = false;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"authors": ["Scott Jehl", "Mat Marquis"],
|
||||
"notes": [{
|
||||
"name": "Specification",
|
||||
"href": "http://picture.responsiveimages.org"
|
||||
"href": "https://html.spec.whatwg.org/multipage/embedded-content.html#embedded-content"
|
||||
},{
|
||||
"name": "Relevant spec issue",
|
||||
"href": "https://github.com/ResponsiveImagesCG/picture-element/issues/87"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"tags": ["elem"],
|
||||
"notes": [{
|
||||
"name": "HTML5Rocks Article",
|
||||
"href": "http://www.html5rocks.com/en/tutorials/webcomponents/template/"
|
||||
"href": "https://www.html5rocks.com/en/tutorials/webcomponents/template/"
|
||||
},{
|
||||
"name": "W3 Spec",
|
||||
"href": "https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html"
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
"authors": ["Addy Osmani"],
|
||||
"notes": [{
|
||||
"name": "W3 track Element Spec",
|
||||
"href": "http://www.w3.org/TR/html5/video.html#the-track-element"
|
||||
"href": "https://www.w3.org/TR/html5/video.html#the-track-element"
|
||||
},{
|
||||
"name": "W3 track API Spec",
|
||||
"href": "http://www.w3.org/TR/html5/media-elements.html#text-track-api"
|
||||
"href": "https://www.w3.org/TR/html5/media-elements.html#text-track-api"
|
||||
}],
|
||||
"warnings": ["While IE10 has implemented the track element, IE10 does not expose the underlying APIs to create timed text tracks by JS (really sad)"]
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"property": "es5array",
|
||||
"notes": [{
|
||||
"name": "ECMAScript 5.1 Language Specification",
|
||||
"href": "http://www.ecma-international.org/ecma-262/5.1/"
|
||||
"href": "https://www.ecma-international.org/ecma-262/5.1/"
|
||||
}],
|
||||
"polyfills": ["es5shim"],
|
||||
"authors": ["Ron Waldon (@jokeyrhyme)"],
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"property": "es5date",
|
||||
"notes": [{
|
||||
"name": "ECMAScript 5.1 Language Specification",
|
||||
"href": "http://www.ecma-international.org/ecma-262/5.1/"
|
||||
"href": "https://www.ecma-international.org/ecma-262/5.1/"
|
||||
}],
|
||||
"polyfills": ["es5shim"],
|
||||
"authors": ["Ron Waldon (@jokeyrhyme)"],
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"property": "es5function",
|
||||
"notes": [{
|
||||
"name": "ECMAScript 5.1 Language Specification",
|
||||
"href": "http://www.ecma-international.org/ecma-262/5.1/"
|
||||
"href": "https://www.ecma-international.org/ecma-262/5.1/"
|
||||
}],
|
||||
"polyfills": ["es5shim"],
|
||||
"authors": ["Ron Waldon (@jokeyrhyme)"],
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"property": "es5object",
|
||||
"notes": [{
|
||||
"name": "ECMAScript 5.1 Language Specification",
|
||||
"href": "http://www.ecma-international.org/ecma-262/5.1/"
|
||||
"href": "https://www.ecma-international.org/ecma-262/5.1/"
|
||||
}],
|
||||
"polyfills": ["es5shim", "es5sham"],
|
||||
"authors": ["Ron Waldon (@jokeyrhyme)"],
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"property": "es5",
|
||||
"notes": [{
|
||||
"name": "ECMAScript 5.1 Language Specification",
|
||||
"href": "http://www.ecma-international.org/ecma-262/5.1/"
|
||||
"href": "https://www.ecma-international.org/ecma-262/5.1/"
|
||||
}],
|
||||
"polyfills": ["es5shim", "es5sham"],
|
||||
"authors": ["Ron Waldon (@jokeyrhyme)"],
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
{
|
||||
"name": "ES5 Strict Mode",
|
||||
"property": "strictmode",
|
||||
"caniuse": "sctrict-mode",
|
||||
"caniuse": "strict-mode",
|
||||
"notes": [{
|
||||
"name": "ECMAScript 5.1 Language Specification",
|
||||
"href": "http://www.ecma-international.org/ecma-262/5.1/"
|
||||
"href": "https://www.ecma-international.org/ecma-262/5.1/"
|
||||
}],
|
||||
"authors": ["@kangax"],
|
||||
"tags": ["es5"],
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"property": "es5string",
|
||||
"notes": [{
|
||||
"name": "ECMAScript 5.1 Language Specification",
|
||||
"href": "http://www.ecma-international.org/ecma-262/5.1/"
|
||||
"href": "https://www.ecma-international.org/ecma-262/5.1/"
|
||||
}],
|
||||
"polyfills": ["es5shim"],
|
||||
"authors": ["Ron Waldon (@jokeyrhyme)"],
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
"property": "es5syntax",
|
||||
"notes": [{
|
||||
"name": "ECMAScript 5.1 Language Specification",
|
||||
"href": "http://www.ecma-international.org/ecma-262/5.1/"
|
||||
"href": "https://www.ecma-international.org/ecma-262/5.1/"
|
||||
}, {
|
||||
"name": "original implementation of detect code",
|
||||
"href": "http://kangax.github.io/es5-compat-table/"
|
||||
"href": "https://kangax.github.io/compat-table/es5/"
|
||||
}],
|
||||
"authors": ["Ron Waldon (@jokeyrhyme)"],
|
||||
"warnings": ["This detect uses `eval()`, so CSP may be a problem."],
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
"property": "es5undefined",
|
||||
"notes": [{
|
||||
"name": "ECMAScript 5.1 Language Specification",
|
||||
"href": "http://www.ecma-international.org/ecma-262/5.1/"
|
||||
"href": "https://www.ecma-international.org/ecma-262/5.1/"
|
||||
}, {
|
||||
"name": "original implementation of detect code",
|
||||
"href": "http://kangax.github.io/es5-compat-table/"
|
||||
"href": "https://kangax.github.io/compat-table/es5/"
|
||||
}],
|
||||
"authors": ["Ron Waldon (@jokeyrhyme)"],
|
||||
"tags": ["es5"]
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
"name": "Chromium dashboard - ES6 Promises",
|
||||
"href": "https://www.chromestatus.com/features/5681726336532480"
|
||||
},{
|
||||
"name": "JavaScript Promises: There and back again - HTML5 Rocks",
|
||||
"href": "http://www.html5rocks.com/en/tutorials/es6/promises/"
|
||||
"name": "JavaScript Promises: an Introduction",
|
||||
"href": "https://developers.google.com/web/fundamentals/primers/promises/"
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
"authors": ["Paul Sayre"],
|
||||
"notes": [{
|
||||
"name": "Article by Dave Perrett",
|
||||
"href": "http://recursive-design.com/blog/2012/07/28/exif-orientation-handling-is-a-ghetto/"
|
||||
"href": "https://www.daveperrett.com/articles/2012/07/28/exif-orientation-handling-is-a-ghetto/"
|
||||
},{
|
||||
"name": "Article by Calvin Hass",
|
||||
"href": "http://www.impulseadventure.com/photo/exif-orientation.html"
|
||||
"href": "https://www.impulseadventure.com/photo/exif-orientation.html"
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
"property": "filesystem",
|
||||
"caniuse": "filesystem",
|
||||
"notes": [{
|
||||
"name": "W3 Draft",
|
||||
"href": "http://dev.w3.org/2009/dap/file-system/file-dir-sys.html"
|
||||
"name": "W3 Spec",
|
||||
"href": "https://www.w3.org/TR/file-system-api/"
|
||||
}],
|
||||
"authors": ["Eric Bidelman (@ebidel)"],
|
||||
"tags": ["file"],
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"href": "https://www.w3.org/TR/gamepad/"
|
||||
},{
|
||||
"name": "HTML5 Rocks tutorial",
|
||||
"href": "http://www.html5rocks.com/en/tutorials/doodles/gamepad/#toc-featuredetect"
|
||||
"href": "https://www.html5rocks.com/en/tutorials/doodles/gamepad/#toc-featuredetect"
|
||||
}],
|
||||
"warnings": [],
|
||||
"polyfills": []
|
||||
@@ -19,6 +19,5 @@
|
||||
Detects support for the Gamepad API, for access to gamepads and controllers.
|
||||
*/
|
||||
define(['Modernizr', 'prefixed'], function(Modernizr, prefixed) {
|
||||
|
||||
Modernizr.addTest('gamepads', !!prefixed('getGamepads', navigator));
|
||||
});
|
||||
|
||||
@@ -1,25 +1,21 @@
|
||||
/*!
|
||||
{
|
||||
"name": "HTML Imports",
|
||||
"notes": [
|
||||
{
|
||||
"property": "htmlimports",
|
||||
"tags": ["html", "import"],
|
||||
"polyfills": ["polymer-htmlimports"],
|
||||
"notes": [{
|
||||
"name": "W3C HTML Imports Specification",
|
||||
"href": "https://w3c.github.io/webcomponents/spec/imports/"
|
||||
},
|
||||
{
|
||||
}, {
|
||||
"name": "HTML Imports - #include for the web",
|
||||
"href": "http://www.html5rocks.com/en/tutorials/webcomponents/imports/"
|
||||
}
|
||||
],
|
||||
"polyfills": ["polymer-htmlimports"],
|
||||
"property": "htmlimports",
|
||||
"tags": ["html", "import"]
|
||||
"href": "https://www.html5rocks.com/en/tutorials/webcomponents/imports/"
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
/* DOC
|
||||
Detects support for HTML import, a feature that is used for loading in Web Components.
|
||||
*/
|
||||
|
||||
define(['addTest', 'createElement'], function(addTest, createElement) {
|
||||
addTest('htmlimports', 'import' in createElement('link'));
|
||||
});
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
"name": "Spec",
|
||||
"href": "http://picture.responsiveimages.org/#parse-sizes-attr"
|
||||
},{
|
||||
"name": "Usage Details",
|
||||
"href": "http://ericportis.com/posts/2014/srcset-sizes/"
|
||||
"name": "Srcset and sizes",
|
||||
"href": "https://ericportis.com/posts/2014/srcset-sizes/"
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
/*!
|
||||
{
|
||||
"name": "Internationalization API",
|
||||
"property": "intl",
|
||||
"notes": [{
|
||||
"name": "MDN documentation",
|
||||
"href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl"
|
||||
},{
|
||||
"name": "ECMAScript spec",
|
||||
"href": "http://www.ecma-international.org/ecma-402/1.0/"
|
||||
}]
|
||||
}
|
||||
{
|
||||
"name": "Internationalization API",
|
||||
"property": "intl",
|
||||
"notes": [{
|
||||
"name": "MDN documentation",
|
||||
"href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl"
|
||||
},{
|
||||
"name": "ECMAScript spec",
|
||||
"href": "https://www.ecma-international.org/ecma-402/1.0/"
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
/* DOC
|
||||
Detects support for the Internationalization API which allow easy formatting of number and dates and sorting string
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"caniuse": "font-feature",
|
||||
"notes": [{
|
||||
"name": "Cross-browser Web Fonts",
|
||||
"href": "http://www.sitepoint.com/cross-browser-web-fonts-part-3/"
|
||||
"href": "https://www.sitepoint.com/cross-browser-web-fonts-part-3/"
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"property": "olreversed",
|
||||
"notes": [{
|
||||
"name": "Impressive Webs article",
|
||||
"href": "http://impressivewebs.com/reverse-ordered-lists-html5"
|
||||
"href": "https://www.impressivewebs.com/reverse-ordered-lists-html5/"
|
||||
}],
|
||||
"builderAliases": ["lists_reversed"]
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"authors": ["Theodoor van Donge", "Hendrik Beskow"],
|
||||
"notes": [{
|
||||
"name": "HTML5 Rocks tutorial",
|
||||
"href": "http://www.html5rocks.com/en/tutorials/notifications/quick/"
|
||||
"href": "https://www.html5rocks.com/en/tutorials/notifications/quick/"
|
||||
},{
|
||||
"name": "W3C spec",
|
||||
"href": "https://www.w3.org/TR/notifications/"
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"href": "https://www.w3.org/TR/2011/WD-page-visibility-20110602/"
|
||||
},{
|
||||
"name": "HTML5 Rocks tutorial",
|
||||
"href": "http://www.html5rocks.com/en/tutorials/pagevisibility/intro/"
|
||||
"href": "https://www.html5rocks.com/en/tutorials/pagevisibility/intro/"
|
||||
}],
|
||||
"polyfills": ["visibilityjs", "visiblyjs", "jquery-visibility"]
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"href": "https://www.w3.org/TR/navigation-timing/"
|
||||
},{
|
||||
"name": "HTML5 Rocks article",
|
||||
"href": "http://www.html5rocks.com/en/tutorials/webperformance/basics/"
|
||||
"href": "https://www.html5rocks.com/en/tutorials/webperformance/basics/"
|
||||
}],
|
||||
"polyfills": ["perfnow"]
|
||||
}
|
||||
|
||||
@@ -4,16 +4,15 @@
|
||||
"property": "pointerevents",
|
||||
"tags": ["input"],
|
||||
"authors": ["Stu Cox"],
|
||||
"notes": [
|
||||
{
|
||||
"notes": [{
|
||||
"name": "W3C Pointer Events",
|
||||
"href": "https://www.w3.org/TR/pointerevents/"
|
||||
},{
|
||||
"name": "W3C Pointer Events Level 2",
|
||||
"href": "https://www.w3.org/TR/pointerevents2/"
|
||||
},{
|
||||
"name": "MDN documentation",
|
||||
"href": "https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent"
|
||||
"name": "MDN documentation",
|
||||
"href": "https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent"
|
||||
}],
|
||||
"warnings": ["This property name now refers to W3C DOM PointerEvents: https://github.com/Modernizr/Modernizr/issues/548#issuecomment-12812099"],
|
||||
"polyfills": ["pep"]
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"caniuse": "x-doc-messaging",
|
||||
"notes": [{
|
||||
"name": "W3C Spec",
|
||||
"href": "http://www.w3.org/TR/html5/comms.html#posting-messages"
|
||||
"href": "https://www.w3.org/TR/html5/comms.html#posting-messages"
|
||||
}],
|
||||
"polyfills": ["easyxdm", "postmessage-jquery"]
|
||||
}
|
||||
|
||||
@@ -1,22 +1,18 @@
|
||||
/*!
|
||||
{
|
||||
"property": "speechrecognition",
|
||||
"tags": ["input", "speech"],
|
||||
"authors": ["Cătălin Mariș"],
|
||||
"name": "Speech Recognition API",
|
||||
"notes": [
|
||||
{
|
||||
"notes": [{
|
||||
"name": "W3C Web Speech API Specification - The SpeechRecognition Interface",
|
||||
"href": "https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-section"
|
||||
},
|
||||
{
|
||||
},{
|
||||
"name": "Introduction to the Web Speech API",
|
||||
"href": "http://updates.html5rocks.com/2013/01/Voice-Driven-Web-Apps-Introduction-to-the-Web-Speech-API"
|
||||
}
|
||||
],
|
||||
"property": "speechrecognition",
|
||||
"tags": ["input", "speech"]
|
||||
"href": "https://developers.google.com/web/updates/2013/01/Voice-Driven-Web-Apps-Introduction-to-the-Web-Speech-API"
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
|
||||
define(['Modernizr', 'prefixed'], function(Modernizr, prefixed) {
|
||||
Modernizr.addTest('speechrecognition', !!prefixed('SpeechRecognition', window));
|
||||
});
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
/*!
|
||||
{
|
||||
"property": "speechsynthesis",
|
||||
"tags": ["input", "speech"],
|
||||
"authors": ["Cătălin Mariș"],
|
||||
"name": "Speech Synthesis API",
|
||||
"notes": [
|
||||
{
|
||||
"name": "W3C Web Speech API Specification - The SpeechSynthesis Interface",
|
||||
"href": "https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section"
|
||||
}
|
||||
],
|
||||
"property": "speechsynthesis",
|
||||
"tags": ["input", "speech"]
|
||||
"notes": [{
|
||||
"name": "W3C Web Speech API Specification - The SpeechSynthesis Interface",
|
||||
"href": "https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section"
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"authors": ["Chris Coyier"],
|
||||
"notes": [{
|
||||
"name": "HTML5 Spec",
|
||||
"href": "http://www.w3.org/TR/html5/embedded-content-0.html#the-img-element"
|
||||
"href": "https://www.w3.org/TR/html5/embedded-content-0.html#the-img-element"
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
@@ -18,10 +18,10 @@ define(['Modernizr', 'addTest'], function(Modernizr) {
|
||||
// https://gist.github.com/chriscoyier/8774501
|
||||
|
||||
// Now a Sync test based on good results here
|
||||
// http://codepen.io/chriscoyier/pen/bADFx
|
||||
// https://codepen.io/chriscoyier/pen/bADFx
|
||||
|
||||
// Note http://www.w3.org/TR/SVG11/feature#Image is *supposed* to represent
|
||||
// Note https://www.w3.org/TR/SVG11/feature#Image is *supposed* to represent
|
||||
// support for the `<image>` tag in SVG, not an SVG file linked from an `<img>`
|
||||
// tag in HTML – but it’s a heuristic which works
|
||||
Modernizr.addTest('svgasimg', document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#Image', '1.1'));
|
||||
Modernizr.addTest('svgasimg', document.implementation.hasFeature('https://www.w3.org/TR/SVG11/feature#Image', '1.1'));
|
||||
});
|
||||
|
||||
@@ -1,26 +1,21 @@
|
||||
/*!
|
||||
{
|
||||
"property": "urlsearchparams",
|
||||
"tags": ["querystring", "url"],
|
||||
"authors": ["Cătălin Mariș"],
|
||||
"name": "URLSearchParams API",
|
||||
"notes": [
|
||||
{
|
||||
"notes": [{
|
||||
"name": "WHATWG specification",
|
||||
"href": "https://url.spec.whatwg.org/#interface-urlsearchparams"
|
||||
},
|
||||
{
|
||||
},{
|
||||
"name": "MDN documentation",
|
||||
"href": "https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams"
|
||||
}
|
||||
],
|
||||
"property": "urlsearchparams",
|
||||
"tags": ["querystring", "url"]
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
|
||||
/* DOC
|
||||
Detects support for an API that provides utility methods for working with the query string of a URL.
|
||||
*/
|
||||
|
||||
define(['Modernizr'], function(Modernizr) {
|
||||
Modernizr.addTest('urlsearchparams', 'URLSearchParams' in window);
|
||||
});
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"polyfills": ["webanimationsjs"],
|
||||
"notes": [{
|
||||
"name": "Introducing Web Animations",
|
||||
"href": "http://brian.sol1.net/svg/2013/06/26/introducing-web-animations/"
|
||||
"href": "https://birtles.wordpress.com/2013/06/26/introducing-web-animations/"
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"knownBugs": [],
|
||||
"notes": [{
|
||||
"name": "Kronos extensions registry",
|
||||
"href": "http://www.khronos.org/registry/webgl/extensions/"
|
||||
"href": "https://www.khronos.org/registry/webgl/extensions/"
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"property": "datachannel",
|
||||
"notes": [{
|
||||
"name": "HTML5 Rocks! Article",
|
||||
"href": "http://www.html5rocks.com/en/tutorials/webrtc/datachannels/"
|
||||
"href": "https://www.html5rocks.com/en/tutorials/webrtc/datachannels/"
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
@@ -12,7 +12,6 @@
|
||||
Detect for the RTCDataChannel API that allows for transfer data directly from one peer to another
|
||||
*/
|
||||
define(['Modernizr', 'prefixed', 'domPrefixes', 'test/webrtc/peerconnection'], function(Modernizr, prefixed, domPrefixes) {
|
||||
|
||||
Modernizr.addTest('datachannel', function() {
|
||||
if (!Modernizr.peerconnection) {
|
||||
return false;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"authors": ["Eric Bidelman", "Masataka Yakura"],
|
||||
"notes": [{
|
||||
"name": "W3C Media Capture and Streams spec",
|
||||
"href": "http://w3c.github.io/mediacapture-main/#dom-mediadevices-getusermedia"
|
||||
"href": "https://w3c.github.io/mediacapture-main/#dom-mediadevices-getusermedia"
|
||||
}]
|
||||
}
|
||||
!*/
|
||||
@@ -16,4 +16,4 @@ Detects support for the new Promise-based `getUserMedia` API.
|
||||
*/
|
||||
define(['Modernizr'], function (Modernizr) {
|
||||
Modernizr.addTest('getUserMedia', 'mediaDevices' in navigator && 'getUserMedia' in navigator.mediaDevices);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"tags": ["performance", "workers"],
|
||||
"builderAliases": ["transferables"],
|
||||
"notes": [{
|
||||
"name": "HTML5 Rocks article",
|
||||
"href": "http://updates.html5rocks.com/2011/12/Transferable-Objects-Lightning-Fast"
|
||||
"name": "Transferable Objects: Lightning Fast!",
|
||||
"href": "https://developers.google.com/web/updates/2011/12/Transferable-Objects-Lightning-Fast"
|
||||
}],
|
||||
"async": true
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"href": "https://www.w3.org/TR/workers/"
|
||||
}, {
|
||||
"name": "HTML5 Rocks article",
|
||||
"href": "http://www.html5rocks.com/en/tutorials/workers/basics/"
|
||||
"href": "https://www.html5rocks.com/en/tutorials/workers/basics/"
|
||||
}, {
|
||||
"name": "MDN documentation",
|
||||
"href": "https://developer.mozilla.org/en-US/docs/Web/Guide/Performance/Using_web_workers"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
Modernizr tests which native CSS3 and HTML5 features are available in the current UA and makes the results available to you in two ways: as properties on a global `Modernizr` object, and as classes on the `<html>` element. This information allows you to progressively enhance your pages with a granular level of control over the experience.
|
||||
|
||||
This project adheres to the [Open Code of Conduct](http://todogroup.org/opencodeofconduct/#Modernizr/conduct@modernizr.com). By participating, you are expected to honor this code.
|
||||
This project adheres to the [Open Code of Conduct](https://todogroup.org/opencodeofconduct/#Modernizr/conduct@modernizr.com). By participating, you are expected to honor this code.
|
||||
|
||||
## New Asynchronous Event Listeners
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ define(['injectElementWithStyles', 'domToCSS', 'computedStyle'], function(inject
|
||||
// Returns `undefined` if native detection not available
|
||||
function nativeTestProps(props, value) {
|
||||
var i = props.length;
|
||||
// Start with the JS API: http://www.w3.org/TR/css3-conditional/#the-css-interface
|
||||
// Start with the JS API: https://www.w3.org/TR/css3-conditional/#the-css-interface
|
||||
if ('CSS' in window && 'supports' in window.CSS) {
|
||||
// Try every prefixed variant of the property
|
||||
while (i--) {
|
||||
|
||||
Reference in New Issue
Block a user