1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-12 11:15:04 +02:00

added IE10 flex support check. closes #2212

This commit is contained in:
Matthew McClure 2015-05-29 16:19:09 -07:00
parent c3c4046317
commit 56a9ef7571

View File

@ -2248,10 +2248,13 @@ Player.prototype.handleError;
Player.prototype.flexNotSupported_ = function() {
var elem = document.createElement('i');
// Note: We don't actually use flexBasis (or flexOrder), but it's one of the more
// common flex features that we can rely on when checking for flex support.
return !('flexBasis' in elem.style ||
'webkitFlexBasis' in elem.style ||
'mozFlexBasis' in elem.style ||
'msFlexBasis' in elem.style);
'msFlexBasis' in elem.style ||
'msFlexOrder' in elem.style /* IE10-specific (2012 flex spec) */);
};
Component.registerComponent('Player', Player);