Skip to content

Transform within default variables #79

Open
@bart-jaskulski

Description

@bart-jaskulski

Transforming px values to rem is not working inside default values in custom properties.

CSS below would be sufficient to reproduce the issue.

body {
  padding: var(--site-padding, 16px) 
}

Desired outcome should be:

body {
  padding: var(--site-padding, 1rem)
}

Nonetheless, such piece of code is not transformed. Is this a flaw possible to fix or design choice?

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