forked from Modernizr/Modernizr
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Modernizr#921 from SlexAxton/master
Add Async Event Support
- Loading branch information
Showing
17 changed files
with
269 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
/*! | ||
{ | ||
"name": "CSS UI Resize", | ||
"property": "cssresize", | ||
"tags": ["css"], | ||
"notes": [{ | ||
"name": "W3C Specification", | ||
"href": "http://www.w3.org/TR/css3-ui/#resize" | ||
},{ | ||
"name": "MDN Docs", | ||
"href": "https://developer.mozilla.org/en/CSS/resize" | ||
}] | ||
} | ||
!*/ | ||
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) { | ||
// Test for CSS 3 UI "resize" property | ||
// http://www.w3.org/TR/css3-ui/#resize | ||
// https://developer.mozilla.org/en/CSS/resize | ||
|
||
Modernizr.addTest('cssresize', testAllProps('resize')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
/*! | ||
{ | ||
"name": "CSS Supports", | ||
"property": "supports", | ||
"tags": ["css"], | ||
"notes": [{ | ||
"name": "W3 Spec", | ||
"href": "http://dev.w3.org/csswg/css3-conditional/#at-supports" | ||
},{ | ||
"name": "Related Github Issue", | ||
"href": "github.com/Modernizr/Modernizr/issues/648" | ||
},{ | ||
"name": "W3 Info", | ||
"href": "http://dev.w3.org/csswg/css3-conditional/#the-csssupportsrule-interface" | ||
}] | ||
} | ||
!*/ | ||
define(['Modernizr'], function( Modernizr ) { | ||
// http://dev.w3.org/csswg/css3-conditional/#at-supports | ||
// github.com/Modernizr/Modernizr/issues/648 | ||
// Relies on the fact that a browser vendor should expose the CSSSupportsRule interface | ||
// http://dev.w3.org/csswg/css3-conditional/#the-csssupportsrule-interface | ||
|
||
Modernizr.addTest('supports','CSSSupportsRule' in window); | ||
Modernizr.addTest('supports', 'CSSSupportsRule' in window); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
/*! | ||
{ | ||
"name": "CSS textshadow", | ||
"property": "textshadow", | ||
"tags": ["css"], | ||
"knownBugs": ["FF3.0 will false positive on this test"] | ||
} | ||
!*/ | ||
define(['Modernizr', 'createElement'], function( Modernizr, createElement ) { | ||
// FF3.0 will false positive on this test | ||
Modernizr.addTest('textshadow', createElement('div').style.textShadow === ''); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
/*! | ||
{ | ||
"name": "CSS Transforms", | ||
"property": "csstransforms", | ||
"tags": ["css"] | ||
} | ||
!*/ | ||
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) { | ||
Modernizr.addTest('csstransforms', !!testAllProps('transform')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
/*! | ||
{ | ||
"name": "CSS Transitions", | ||
"property": "csstransitions", | ||
"tags": ["css"] | ||
} | ||
!*/ | ||
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) { | ||
Modernizr.addTest('csstransitions', testAllProps('transition')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
/*! | ||
{ | ||
"name": "CSS user-select", | ||
"property": "userselect", | ||
"authors": ["ryan seddon"], | ||
"tags": ["css"], | ||
"notes": [{ | ||
"name": "Related Modernizr Issue", | ||
"href": "https://github.com/Modernizr/Modernizr/issues/250" | ||
}] | ||
} | ||
!*/ | ||
define(['Modernizr', 'testAllProps'], function( Modernizr, testAllProps ) { | ||
// -moz-user-select:none test. | ||
// by ryan seddon | ||
//https://github.com/Modernizr/Modernizr/issues/250 | ||
|
||
Modernizr.addTest('userselect', testAllProps('userSelect')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.