forked from Modernizr/Modernizr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated/fixes Modernizr#696 - adds preload and loop checks for video …
…and audio elements
- Loading branch information
1 parent
bed37f3
commit cee193c
Showing
4 changed files
with
40 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/*! | ||
{ | ||
"name": "Audio Loop Attribute", | ||
"property": "audioloop", | ||
"tags": ["audio", "media"] | ||
} | ||
!*/ | ||
define(['Modernizr', 'createElement'], function( Modernizr, createElement ) { | ||
Modernizr.addTest('audioloop', 'loop' in createElement('audio')); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/*! | ||
{ | ||
"name": "Audio Preload Attribute", | ||
"property": "audiopreload", | ||
"tags": ["audio", "media"] | ||
} | ||
!*/ | ||
define(['Modernizr', 'createElement'], function( Modernizr, createElement ) { | ||
Modernizr.addTest('audiopreload', 'preload' in createElement('audio')); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/*! | ||
{ | ||
"name": "Video Loop Attribute", | ||
"property": "videoloop", | ||
"tags": ["video", "media"] | ||
} | ||
!*/ | ||
define(['Modernizr', 'createElement'], function( Modernizr, createElement ) { | ||
Modernizr.addTest('videoloop', 'loop' in createElement('video')); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/*! | ||
{ | ||
"name": "Video Preload Attribute", | ||
"property": "videopreload", | ||
"tags": ["video", "media"] | ||
} | ||
!*/ | ||
define(['Modernizr', 'createElement'], function( Modernizr, createElement ) { | ||
Modernizr.addTest('videopreload', 'preload' in createElement('video')); | ||
}); |