mirror of
https://github.com/videojs/video.js.git
synced 2024-12-12 11:15:04 +02:00
Merge pull request #2218 from mmcc/ie10-flex-check
added IE10 flex support check
This commit is contained in:
commit
040410122f
@ -2257,10 +2257,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);
|
||||
|
Loading…
Reference in New Issue
Block a user