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.
Ben Alpert committed
Aug 19, 2015 at 17:18 UTC
b1269263905e491477dc54186a6f486748b6e62c
1 file changed
+13
-2
src/renderers/dom/shared/CSSProperty.js
+13
-2
@@ -80,10 +80,16 @@ Object.keys(isUnitlessNumber).forEach(function(prop) {
80
*/
81
var shorthandPropertyExpansions = {
82
background: {
83
+ backgroundAttachment: true,
84
+ backgroundColor: true,
85
backgroundImage: true,
84
- backgroundPosition: true,
86
+ backgroundPositionX: true,
87
+ backgroundPositionY: true,
88
backgroundRepeat: true,
86
- backgroundColor: true,
89
+ },
90
+ backgroundPosition: {
91
+ backgroundPositionX: true,
92
+ backgroundPositionY: true,
93
},
94
border: {
95
borderWidth: true,
@@ -118,6 +124,11 @@ var shorthandPropertyExpansions = {
124
lineHeight: true,
125
fontFamily: true,
126
},
127
+ outline: {
128
+ outlineWidth: true,
129
+ outlineStyle: true,
130
+ outlineColor: true,
131
+ },
132
};
133
134
var CSSProperty = {