wswmsword / postcss-mobile-forever

一款 PostCSS 插件,将固定尺寸的视图转为可跟随宽度变化而等比例伸缩的视图。To adapt different displays by one mobile viewport.
https://wswmsword.github.io/examples/mobile-forever/vanilla/
MIT License
325 stars 19 forks source link

bug: css 变量默认值不转换 #25

Closed bigmeow closed 8 months ago

bigmeow commented 8 months ago

输入:

.test {
    font-size: var(--row-font-size, 14px);
}

实际输出:

.test {
    font-size: var(--row-font-size, 14px);
}

希望输出:

.test {
    font-size: var(--row-font-size, min(19.2vw, 99.84px));
}
wswmsword commented 8 months ago

谢谢反馈,在版本 4.1.2 中已修复。