Last active
December 30, 2015 03:19
-
-
Save callumlocke/7768330 to your computer and use it in GitHub Desktop.
Modernizr test for "track" element (part of HTML5 video element, for captions/subtitles etc)
This file contains hidden or 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
Modernizr.addTest('track', function () { | |
var t = document.createElement('track'); | |
return t.track && t.track.kind; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment