From b1269263905e491477dc54186a6f486748b6e62c Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Wed, 19 Aug 2015 17:18:17 -0700 Subject: [PATCH] Ensure IE8 style expansion list is up to date In conjunction with #1953, fixes #2407. This seems to be all of the shorthand style properties that IE8 supports, excluding a few nonstandard ones. --- src/renderers/dom/shared/CSSProperty.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/renderers/dom/shared/CSSProperty.js b/src/renderers/dom/shared/CSSProperty.js index 143b641cf9fd..5e797b15db26 100644 --- a/src/renderers/dom/shared/CSSProperty.js +++ b/src/renderers/dom/shared/CSSProperty.js @@ -80,10 +80,16 @@ Object.keys(isUnitlessNumber).forEach(function(prop) { */ var shorthandPropertyExpansions = { background: { + backgroundAttachment: true, + backgroundColor: true, backgroundImage: true, - backgroundPosition: true, + backgroundPositionX: true, + backgroundPositionY: true, backgroundRepeat: true, - backgroundColor: true, + }, + backgroundPosition: { + backgroundPositionX: true, + backgroundPositionY: true, }, border: { borderWidth: true, @@ -118,6 +124,11 @@ var shorthandPropertyExpansions = { lineHeight: true, fontFamily: true, }, + outline: { + outlineWidth: true, + outlineStyle: true, + outlineColor: true, + }, }; var CSSProperty = {