Skip to content

Incorrectly removes CSS variables #323

@ghost

Description

Example:

.wrapper { --border: black; }
#navigation div { border: 1px solid var(--border) }

In this case, the variable can still be valid if #navigation is inside .wrapper. However, clean-css assumes that it's invalid and outputs .wrapper{--border:#000}#navigation div{border:1px solid}, which is wrong. Oddly enough, it seems to leave other variable uses alone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions