Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Custom Property as Fallback for Custom Property #208

@matthiaskomarek

Description

@matthiaskomarek

Hello,
thanks for the awesome package and the great work.
I have found an issue when you have a Custom Property defined as Fallback of a Custom Property.

Given the following example:

:root {
    --my-background: #fff;
}
.three {
  background-color: var(--my-var, var(--my-background, pink));
}

Expected output should be:

:root {
    --my-background: #fff;
}
.three {
  background-color: #fff;
}

The Current output if --my-background is defined is like this:

:root {
    --my-background: #fff;
}
.three {
  background-color: var(--my-background, pink);
}

In my opinion the current output is wrong and i would like to make a PR for this if you agree.
Thanks

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