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

Fix multiple var on a single property #210

Merged

Conversation

ryuran
Copy link
Contributor

@ryuran ryuran commented Mar 5, 2020

:root {
	--color-h: 0;
	--color-s: 100%;
	--color-l: 50%;
	--color-hsl: hsl(var(--color-h), var(--color-s), var(--color-l));
}

.test--color_w_vars {
	color: var(--color-hsl);
}

Should be resolved as

.test--color_w_vars {
	color: hsl(0, 100%, 50%);
}

@jonathantneal jonathantneal merged commit a250907 into postcss:master Mar 7, 2020
romainmenke pushed a commit to csstools/postcss-plugins that referenced this pull request Dec 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants