-
Notifications
You must be signed in to change notification settings - Fork 1
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
Improper expansion of transition-delay property #7
Comments
Actually, this could be a bigger issue that may be outside the scope of this lib. It doesn't seem to support multi-part shorthand properties like
Should return:
But currently returns:
|
Thanks for bug report. I'm not sure about resolving sources to comma separated lists like shortcss.expand('transition', 'margin 3ms ease, padding 100ms ease-in-out')
// →
[{
'transition-property': 'margin',
'transition-duration': '3ms',
'transition-timing-function': 'ease'
}, {
'transition-property': 'padding',
'transition-duration': '100ms',
'transition-timing-function': 'ease-in-out'
}] and... shortcss.expand('transition', 'opacity 200ms ease')
// →
[{
"transition-property": "opacity",
"transition-duration": "200ms",
"transition-timing-function": "ease"
}] |
i can take this issue |
Expanding
transition
shorthand like this:shortcss.expand('transition', 'opacity 200ms ease')
Currently returns:
In this case, the
transition-delay: 200ms;
is invalid since transition delay is not specified in the shorthand and should default to0s
instead.Expanding
opacity 200ms ease 0.5s
works correctly as expected 👍(Will include a PR once I find some time, but just wanted to get this on your radar.)
The text was updated successfully, but these errors were encountered: