Open bangseongbeom opened 8 years ago
Thank you for the bug report @bangseongbeom :grinning:
Any news on this issue?
It occures when overwriting a variable more then one time:
:root {
--test: 300px;
--bla: var(--test);
}
div {
width: var(--test);
}
div.foo {
--test: 200px;
width: var(--bla);
}
div.bar {
--test: 100px;
width: var(--bla);
}
Actual:
div {
width: 100px;
}
div.foo {
width: 100px;
}
div.bar {
width: 100px;
}
Expected:
div {
width: 300px;
}
div.foo {
width: 200px;
}
div.bar {
width: 100px;
}
Sorry @Dangoo, postcss-css-variables
needs a overhaul and while I have started some of it a while ago, I haven't had a chance to dive back in and get it done. Currently the code is flawed and too brittle which makes fixing these things troublesome.
Dependent property should be redefined if source property is changed.
Input:
Actual:
Expected: