Skip to content

Commit

Permalink
fix: 修复poistion的枚举错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
heiazu committed Jun 4, 2024
1 parent f2398cf commit 5700315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/style_propetries/position.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl From<(String, &Property<'_>)> for Position {
impl ToExpr for Position {
fn to_expr(&self) -> PropertyTuple {
PropertyTuple::One(
CSSPropertyType::Display,
CSSPropertyType::Position,
match &self.value {
EnumValue::Static => generate_expr_enum!(style_property_enum::Position::Static),
EnumValue::Relative => generate_expr_enum!(style_property_enum::Position::Relative),
Expand Down

0 comments on commit 5700315

Please # to comment.