Skip to content

Commit 791cd84

Browse files
author
mayintao3
committed
feat: transition 为 all的时候,解析成CSSPropertyType::All而不是原来是-1
1 parent a73f267 commit 791cd84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/style_propetries/transition.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl From<(String, &Property<'_>)> for Transition {
118118
_ => TransitionTimingFunction::EasingFunction(transition.timing_function.clone()),
119119
});
120120
if transition.property == PropertyId::All {
121-
transtition_property = Some(-1);
121+
transtition_property = Some(CSSPropertyType::All as i32);
122122
} else {
123123
transtition_property = Some(convert_property_to_cssty(&transition.property) as i32);
124124
}

0 commit comments

Comments
 (0)