Tags
invert()Filter
Example
@media (inverted-colors: inverted) { img, video { filter: invert(100%); } }
Info
While invert()
can be used to make something look like a photo negative, my favorite technique is to use it in a inverted colors media query to invert inverted images and video:
This ensures that image and video content looks the way it should, regardless of a user’s expressed browsing mode preferences.