Skip to content

Use variable only from last pseudo-element #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Zmoki opened this issue Nov 2, 2016 · 4 comments · May be fixed by #126
Open

Use variable only from last pseudo-element #46

Zmoki opened this issue Nov 2, 2016 · 4 comments · May be fixed by #126
Labels

Comments

@Zmoki
Copy link

Zmoki commented Nov 2, 2016

Input

.bar {
  --color: pink;
  color: var(--color);
}

.bar:active {
  --color: blue;
}

.bar:hover {
  --color: red;
}

.bar:focus {
  --color: green;
}

Expected

.bar {
  color: pink;
}

.bar:active {
  color: blue;
}

.bar:hover {
  color: red;
}

.bar:focus {
  color: green;
}

Will be transformed to (Actual)

😞

.bar {
  color: pink;
}

.bar:focus {
  color: green;
}

.bar:hover {
  color: green;
}

.bar:active {
  color: green;
}
@MadLittleMods
Copy link
Owner

Thanks for the report 😀 PR welcome, don't forget to add tests

For future reference, please also include your expected (I have edited in what I assume you expect).

@MrBaptastic
Copy link

Any updates on this bug ?

@MadLittleMods
Copy link
Owner

Sorry, no updates @MrBaptastic

@joshgillies
Copy link

@MadLittleMods any idea what would be required to resolve this issue?

@siilike siilike linked a pull request May 23, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants