@@ -82,71 +82,8 @@ Object.keys(isUnitlessNumber).forEach(function(prop) {
8282 } ) ;
8383} ) ;
8484
85- /**
86- * Most style properties can be unset by doing .style[prop] = '' but IE8
87- * doesn't like doing that with shorthand properties so for the properties that
88- * IE8 breaks on, which are listed here, we instead unset each of the
89- * individual properties. See http://bugs.jquery.com/ticket/12385.
90- * The 4-value 'clock' properties like margin, padding, border-width seem to
91- * behave without any problems. Curiously, list-style works too without any
92- * special prodding.
93- */
94- var shorthandPropertyExpansions = {
95- background : {
96- backgroundAttachment : true ,
97- backgroundColor : true ,
98- backgroundImage : true ,
99- backgroundPositionX : true ,
100- backgroundPositionY : true ,
101- backgroundRepeat : true ,
102- } ,
103- backgroundPosition : {
104- backgroundPositionX : true ,
105- backgroundPositionY : true ,
106- } ,
107- border : {
108- borderWidth : true ,
109- borderStyle : true ,
110- borderColor : true ,
111- } ,
112- borderBottom : {
113- borderBottomWidth : true ,
114- borderBottomStyle : true ,
115- borderBottomColor : true ,
116- } ,
117- borderLeft : {
118- borderLeftWidth : true ,
119- borderLeftStyle : true ,
120- borderLeftColor : true ,
121- } ,
122- borderRight : {
123- borderRightWidth : true ,
124- borderRightStyle : true ,
125- borderRightColor : true ,
126- } ,
127- borderTop : {
128- borderTopWidth : true ,
129- borderTopStyle : true ,
130- borderTopColor : true ,
131- } ,
132- font : {
133- fontStyle : true ,
134- fontVariant : true ,
135- fontWeight : true ,
136- fontSize : true ,
137- lineHeight : true ,
138- fontFamily : true ,
139- } ,
140- outline : {
141- outlineWidth : true ,
142- outlineStyle : true ,
143- outlineColor : true ,
144- } ,
145- } ;
146-
14785var CSSProperty = {
14886 isUnitlessNumber : isUnitlessNumber ,
149- shorthandPropertyExpansions : shorthandPropertyExpansions ,
15087} ;
15188
15289module . exports = CSSProperty ;
0 commit comments