縮減漸層 (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);
}
正規化線性和徑向漸層參數。
.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);
}