Skip to content

remove zero units #18

@tomhodgins

Description

@tomhodgins
.remove-zero-unit {
  max-height: 0%;
  height: 0%;
  font-size: calc(0%);
  transform: rotateZ(0deg);
}

correct minification

.remove-zero-unit{max-height:0;height:0;font-size:0;transform:rotate(0)}
  • removes % and deg units where they can be safely eliminated

CSSnano output

.remove-zero-unit{max-height:0%;height:0%;font-size:0%;transform:rotate(0deg)}
  • can remove unit from % on height and max-height properties
  • can remove deg from 0deg
  • can remove % if final simplification from calc is 0%

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