Inputting the code
@media screen and (min-width: 500px) {
:root {
--defaultFontSize: 2.8vw;
--specialFontSize: var(--defaultFontSize);
}
}
@media screen and (min-width: 600px) {
:root {
--defaultFontSize: 3.8vw;
}
}
body {
font-size: var(--specialFontSize)
}
outputs
body {
font-size: undefined
}
@media screen and (min-width: 600px) {
body {
font-size: undefined
}
}
@media screen and (min-width: 500px) {
body {
font-size: 2.8vw
}
}
@media screen and (min-width: 500px) {
body {
font-size: 2.8vw
}
}
Note the font-size:undefined in the second declaration. That should be a 3.8vw.