Skip to content
This repository was archived by the owner on Jun 10, 2018. It is now read-only.
This repository was archived by the owner on Jun 10, 2018. It is now read-only.

Removing units from transitions that use zero #44

@avilyn

Description

@avilyn

The YUI::CssCompressor is currently removing the units from transitions that use 0.

Example CSS file:

.stuff {
  transition: opacity 0ms ease-out 200ms;
}

Which gets compressed to (using 0.12.0):

".stuff{transition:opacity 0 ease-out 200ms}"

But it should be compressing to the following instead:

".stuff{transition:opacity 0ms ease-out 200ms}"

The ms after the 0 is required for several browsers. Without it they don't recognize the rule as a valid transition. Tested in Firefox 39 and Chrome 44.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions