グラデーションの最小化
線形および円形グラデーションのパラメータを標準化します
例
入力
.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);
}