csso icon indicating copy to clipboard operation
csso copied to clipboard

Restructuring Removes Background Image Trick

Open jmwebservices opened this issue 4 years ago • 0 comments

For UAs not supporting SVG as background images, there is a nice fallback which CSSO restructuring destroys.

.selector {
    background-image: url( 'image.png' );
    background-image: url( 'image.svg' ), none;
}

Results in:

.selector {
    background-image: url(image.svg),none
}

This is similar to https://github.com/css/csso/issues/415 albeit for a different property.

jmwebservices avatar Feb 09 '21 23:02 jmwebservices