Skip to content

[css-variables] Whether to support override a property using itself? #876

@helloyou2012

Description

@helloyou2012

I want to override property like this

:root {
  --main-color: #333;
  --main-color: var(--main-color, #666);
}
h1 {
  color: var(--main-color);
}

and expect

h1 {
  color: #333;
}

Does support ?

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