minifyGradients

Normalizes linear and radial gradient parameters.

Example

Input

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

Output

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