Skip to content

Don't remove "%" from keyframe 0% directive #7

@jchatard

Description

@jchatard

Hi!

First things first, thanks for this port! It's pretty cool to be able to embed the YUI Compressor inside a PHP project and don't rely on a third party program outside the app.

This port breaks CSS animations and transforms because it strips the unit of a value when this value is 0, i.e.:

transform: translateX(0px) rotate(0deg)

becomes...

transform:translateX(0) rotate(0)

I have no idea if this a valid syntax or not, but what I'm sure, is that the animations I'm using don't work anymore once compressed.

I attach a screenshot of a diff, left side official YUI CSS Compressor output, on the right side YUI Compressor PHP port.

diff-yui

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