forked from TagesschuleElementa/www.tagesschule-elementa.ch
fixes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* modernizr v3.6.0
|
||||
* Build https://modernizr.com/download?-cssanimations-touchevents-setclasses-dontmin
|
||||
* Build https://modernizr.com/download?-csstransitions-touchevents-setclasses-dontmin
|
||||
*
|
||||
* Copyright (c)
|
||||
* Faruk Ates
|
||||
@@ -572,6 +572,23 @@ This test will also return `true` for Firefox 4 Multitouch support.
|
||||
|
||||
;
|
||||
|
||||
/**
|
||||
* cssToDOM takes a kebab-case string and converts it to camelCase
|
||||
* e.g. box-sizing -> boxSizing
|
||||
*
|
||||
* @access private
|
||||
* @function cssToDOM
|
||||
* @param {string} name - String name of kebab-case prop we want to convert
|
||||
* @returns {string} The camelCase version of the supplied name
|
||||
*/
|
||||
|
||||
function cssToDOM(name) {
|
||||
return name.replace(/([a-z])-([a-z])/g, function(str, m1, m2) {
|
||||
return m1 + m2.toUpperCase();
|
||||
}).replace(/^-/, '');
|
||||
}
|
||||
;
|
||||
|
||||
/**
|
||||
* fnBind is a super small [bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind) polyfill.
|
||||
*
|
||||
@@ -629,23 +646,6 @@ This test will also return `true` for Firefox 4 Multitouch support.
|
||||
|
||||
;
|
||||
|
||||
/**
|
||||
* cssToDOM takes a kebab-case string and converts it to camelCase
|
||||
* e.g. box-sizing -> boxSizing
|
||||
*
|
||||
* @access private
|
||||
* @function cssToDOM
|
||||
* @param {string} name - String name of kebab-case prop we want to convert
|
||||
* @returns {string} The camelCase version of the supplied name
|
||||
*/
|
||||
|
||||
function cssToDOM(name) {
|
||||
return name.replace(/([a-z])-([a-z])/g, function(str, m1, m2) {
|
||||
return m1 + m2.toUpperCase();
|
||||
}).replace(/^-/, '');
|
||||
}
|
||||
;
|
||||
|
||||
/**
|
||||
* Create our "modernizr" element that we do most feature tests on.
|
||||
*
|
||||
@@ -949,23 +949,14 @@ This test will also return `true` for Firefox 4 Multitouch support.
|
||||
|
||||
/*!
|
||||
{
|
||||
"name": "CSS Animations",
|
||||
"property": "cssanimations",
|
||||
"caniuse": "css-animation",
|
||||
"polyfills": ["transformie", "csssandpaper"],
|
||||
"tags": ["css"],
|
||||
"warnings": ["Android < 4 will pass this test, but can only animate a single property at a time"],
|
||||
"notes": [{
|
||||
"name" : "Article: 'Dispelling the Android CSS animation myths'",
|
||||
"href": "https://goo.gl/OGw5Gm"
|
||||
}]
|
||||
"name": "CSS Transitions",
|
||||
"property": "csstransitions",
|
||||
"caniuse": "css-transitions",
|
||||
"tags": ["css"]
|
||||
}
|
||||
!*/
|
||||
/* DOC
|
||||
Detects whether or not elements can be animated using CSS
|
||||
*/
|
||||
|
||||
Modernizr.addTest('cssanimations', testAllProps('animationName', 'a', true));
|
||||
Modernizr.addTest('csstransitions', testAllProps('transition', 'all', true));
|
||||
|
||||
|
||||
// Run each test
|
||||
|
||||
Reference in New Issue
Block a user