グラデーションの最小化

線形および円形グラデーションのパラメータを標準化します

入力

.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);
}