To repro:
Run Chrome with --blink-settings=highContrastMode=3,highContrastImagePolicy=2 - that enables inverted colors mode, but attempts to avoid inverting photographic images.
This works poorly if you have text over top of a photo - in that case, the photo needs to be inverted after all to avoid making the text look bad.
One example site where you can observe this is Amazon - sign in, then hover over Departments, then a specific department like Amazon Video - the pop-up menu is text over a photo background.
Ideally we'd like the photo here to be inverted, so the text on top of it is maximally legible. However, images of products on Amazon product pages should be uninverted.
We need a way to figure out if an image has text overlaying it.