css / csso

CSS minifier with structural optimizations
https://css.github.io/csso/csso.html
MIT License
3.76k stars 187 forks source link

Preserve double 'overflow' declaration #415

Closed jmwebservices closed 4 years ago

jmwebservices commented 4 years ago

CSSO strips all but the last declaration of overflow within a declaration block. So,

.selector
{
overflow: auto;
overflow: overlay;
}

becomes the following:

.selector
{
overflow: overlay;
}

Declaring overflow twice is needed for UAs that do not support the overlay value.

This was tested with CSSO v3.5.0 and with 4.0.3 (online).