CSS Filter Property Invert Color


Example

HTML

<div></div>

CSS

div {
    width: 100px;
    height: 100px;
    background-color: white;
    -webkit-filter: invert(100%);
    filter: invert(100%);
}

Result

enter image description here

Turns from white to black.