fix(animations): always camelcase style property names that contain auto styles
Closes #17938
This commit is contained in:

committed by
Alex Rickabaugh

parent
23146c9201
commit
d22f8f54db
@ -36,13 +36,22 @@ export function normalizeKeyframes(
|
||||
Object.keys(kf).forEach(prop => {
|
||||
let normalizedProp = prop;
|
||||
let normalizedValue = kf[prop];
|
||||
if (normalizedValue == PRE_STYLE) {
|
||||
normalizedValue = preStyles[prop];
|
||||
} else if (normalizedValue == AUTO_STYLE) {
|
||||
normalizedValue = postStyles[prop];
|
||||
} else if (prop != 'offset') {
|
||||
normalizedProp = normalizer.normalizePropertyName(prop, errors);
|
||||
normalizedValue = normalizer.normalizeStyleValue(prop, normalizedProp, kf[prop], errors);
|
||||
if (prop !== 'offset') {
|
||||
normalizedProp = normalizer.normalizePropertyName(normalizedProp, errors);
|
||||
switch (normalizedValue) {
|
||||
case PRE_STYLE:
|
||||
normalizedValue = preStyles[prop];
|
||||
break;
|
||||
|
||||
case AUTO_STYLE:
|
||||
normalizedValue = postStyles[prop];
|
||||
break;
|
||||
|
||||
default:
|
||||
normalizedValue =
|
||||
normalizer.normalizeStyleValue(prop, normalizedProp, normalizedValue, errors);
|
||||
break;
|
||||
}
|
||||
}
|
||||
normalizedKeyframe[normalizedProp] = normalizedValue;
|
||||
});
|
||||
|
Reference in New Issue
Block a user