Skip to content

Incorrect padding optimization (CSS variables problem) #420

@dizel3d

Description

@dizel3d
.foobar {
  padding: var(--button-size-m-text-indentAll);
  padding-right: var(--button-size-m-icon-indentRight);
}

becomes

.foobar {
  padding: var(--button-size-m-text-indentAll) var(--button-size-m-icon-indentRight) var(--button-size-m-text-indentAll) 
  var(--button-size-m-text-indentAll);
}

It's incorrect for

--button-size-m-text-indentAll: 0 20px;
--button-size-m-icon-indentRight: 30px;

and suboptimal as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions