0

The property, I think, makes for example dark text color on light background if it is set to be light and text cannot be read...or reverses text color if it is on image and/or vice versa.

I've seen some questions on SO with it but really can't find them anymore and dont remember property name. In case I am unclear:

Python

If text color would be set to white, we couldnt read it because python logo has some white space around it and text is over image. There is a css property which would set text to black as it is now. What is its name?

John Slegers
  • 45,213
  • 22
  • 199
  • 169
  • 2
    Maybe this is what you're looking for? http://stackoverflow.com/questions/16981763/invert-css-font-color-depending-on-background-color – dabadaba Mar 30 '16 at 11:03

2 Answers2

0

I'm not sure, but maybe you talk about mix-blend-mode: difference?

oboshto
  • 3,478
  • 4
  • 25
  • 24
0

I believe the filter property is what you're looking for :

img {
    -webkit-filter: invert(1) saturate(0);
    filter: invert(1) saturate(0);
}
<img src="https://i.stack.imgur.com/agSSc.jpg" />
John Slegers
  • 45,213
  • 22
  • 199
  • 169