normalizeRepeatStyle
在可能的情况下,将 background-repeat 的双值语法简化为单值语法,包括属性本身和 background 简写。还适用于 mask-repeat。
示例
输入
.box {
background-repeat: no-repeat repeat;
}
输出
.box {
background-repeat: repeat-y;
}
在可能的情况下,将 background-repeat 的双值语法简化为单值语法,包括属性本身和 background 简写。还适用于 mask-repeat。
.box {
background-repeat: no-repeat repeat;
}
.box {
background-repeat: repeat-y;
}