minifyGradients

对线性和径向渐变参数进行规范化。

示例

输入

.box {
    background: linear-gradient(to bottom, #ffe500 0%, #ffe500 50%, #121 50%, #121 100%);
}

输出

.box {
    background: linear-gradient(180deg, #ffe500, #ffe500 50%, #121 0, #121);
}