From 56a9ef7571dff72c686969507000246605a005b7 Mon Sep 17 00:00:00 2001 From: Matthew McClure Date: Fri, 29 May 2015 16:19:09 -0700 Subject: [PATCH] added IE10 flex support check. closes #2212 --- src/js/player.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/player.js b/src/js/player.js index 927b0295e..9ae0d4c47 100644 --- a/src/js/player.js +++ b/src/js/player.js @@ -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);