-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Remove non-standard CSS properties #605
Conversation
compressed-size: runtime library Size change: 0.00 kB View unchanged
|
compressed-size: e2e bundles Size change: 0.00 kB View unchanged
|
@@ -592,20 +592,9 @@ const borderImage = makeUnionRule( | |||
isString, | |||
borderImageRepeat, | |||
); | |||
// const borderInlineEnd = makeUnionRule(borderWidth, borderStyle, color); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these already declared elsewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Border shorthands are intentionally disallowed. You gotta use borderInlineEndWidth
, Style
and Color
instead.
Also, there were originally lots of redundant declarations which I've been pruning whenever I make edits.
After adding much stricter validation for StyleX, I will overhaul the CSS types. In the meantime, I'm trying to migrate away from using strings for CSS variables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yes, sorry I misread those
const borderLeftColor = color; | ||
const borderLeftStyle = brStyle; | ||
const borderLeftWidth = borderWidth; | ||
const borderRightColor = color; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these meant to be deleted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, borderRightColor
references color
directly instead.
Fixes #604