:root {
--col-light: #fff;
--main-background: #fff; // a fallback value where it's not needed
--main-background: var(--col-light);
}
body {
color: var(--main-background);
}
I expect the compiler to pass the first variable's value (#fff) through the second variable to the property and to have an output like this one:
:root {
--col-light: #fff;
--main-background: var(--col-light);
}
body {
color: #fff; // a properly placed fallback value
color: var(--main-background);
}
Because now the outcome makes the Fallback feature useless.
If I have this code:
The output will be like so:
I expect the compiler to pass the first variable's value (#fff) through the second variable to the property and to have an output like this one:
Because now the outcome makes the Fallback feature useless.