Skip to content

Commit

Permalink
add border shorthands
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Aug 5, 2023
1 parent 73a914e commit 21f9763
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/hdx_ast/src/css/properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ properties! {
atom!("background-repeat") => BackgroundRepeat<Expr<'a, Todo>>,
atom!("background-size") => BackgroundSize<Expr<'a, Todo>>,
atom!("border") => Border<BorderShorthand<'a>> shorthand=true,
atom!("border-bottom") => BorderBottom<Expr<'a, Todo>> shorthand=true,
atom!("border-bottom") => BorderBottom<BorderShorthand<'a>> shorthand=true,
atom!("border-bottom-color") => BorderBottomColor<Expr<'a, ColorValue<'a>>> initial=Expr::Literal(Spanned::dummy(ColorValue::CurrentColor)),
atom!("border-bottom-left-radius") => BorderBottomLeftRadius<Expr<'a, Todo>>,
atom!("border-bottom-right-radius") => BorderBottomRightRadius<Expr<'a, Todo>>,
Expand All @@ -232,17 +232,17 @@ properties! {
atom!("border-image-slice") => BorderImageSlice<Expr<'a, Todo>>,
atom!("border-image-source") => BorderImageSource<Expr<'a, Todo>>,
atom!("border-image-width") => BorderImageWidth<Expr<'a, Todo>>,
atom!("border-left") => BorderLeft<Expr<'a, Todo>> shorthand=true,
atom!("border-left") => BorderLeft<BorderShorthand<'a>> shorthand=true,
atom!("border-left-color") => BorderLeftColor<ColorValue<'a>> initial=ColorValue::CurrentColor,
atom!("border-left-style") => BorderLeftStyle<Expr<'a, LineStyle>>,
atom!("border-left-width") => BorderLeftWidth<MathExpr<'a, LineWidth>>,
atom!("border-radius") => BorderRadius<Expr<'a, Todo>> shorthand=true,
atom!("border-right") => BorderRight<Expr<'a, Todo>> shorthand=true,
atom!("border-right") => BorderRight<BorderShorthand<'a>> shorthand=true,
atom!("border-right-color") => BorderRightColor<ColorValue<'a>> initial=ColorValue::CurrentColor,
atom!("border-right-style") => BorderRightStyle<Expr<'a, LineStyle>>,
atom!("border-right-width") => BorderRightWidth<MathExpr<'a, LineWidth>>,
atom!("border-style") => BorderStyle<Expr<'a, Todo>> shorthand=true,
atom!("border-top") => BorderTop<Expr<'a, Todo>> shorthand=true,
atom!("border-top") => BorderTop<BorderShorthand<'a>> shorthand=true,
atom!("border-top-color") => BorderTopColor<ColorValue<'a>> initial=ColorValue::CurrentColor,
atom!("border-top-left-radius") => BorderTopLeftRadius<Expr<'a, Todo>>,
atom!("border-top-right-radius") => BorderTopRightRadius<Expr<'a, Todo>>,
Expand Down

0 comments on commit 21f9763

Please sign in to comment.