Skip to content

Commit

Permalink
updated/fixes Modernizr#696 - adds preload and loop checks for video …
Browse files Browse the repository at this point in the history
…and audio elements
  • Loading branch information
patrickkettner committed May 26, 2013
1 parent bed37f3 commit cee193c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
10 changes: 10 additions & 0 deletions feature-detects/audio/loop.js
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'));
});
10 changes: 10 additions & 0 deletions feature-detects/audio/preload.js
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'));
});
10 changes: 10 additions & 0 deletions feature-detects/video/loop.js
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'));
});
10 changes: 10 additions & 0 deletions feature-detects/video/preload.js
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'));
});

0 comments on commit cee193c

Please sign in to comment.