Skip to content

Improper expansion of transition-delay property #7

@callmevlad

Description

@callmevlad

Expanding transition shorthand like this:

shortcss.expand('transition', 'opacity 200ms ease')

Currently returns:

{
  "transition-property": "opacity",
  "transition-duration": "200ms",
  "transition-timing-function": "ease",
  "transition-delay": "200ms"
}

In this case, the transition-delay: 200ms; is invalid since transition delay is not specified in the shorthand and should default to 0s 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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions