I've been looking into mix-blend-mode in CSS which seems like a powerful property! However, I'm very confused as to how this actually works. I'm having unpredictable results. Take this codepen as an example:
https://codepen.io/KingKabir/pen/ONyPeg
The background of the body is set to a dark color, while every other section has a background set to white.
body { background-color: #000 }
section:nth-of-type(even) { background-color: #FFF}
Now try to change the background color of the body to white, and notice how the menu doesn't change it's color to black. What is going on here? Both sections have the same background-color?
If you set the background color of the first section specifically to white, it works as intended. But not if the first section has no background-color and the body is set to white. Shouldn't the results be the same?
I'm having this exact issue on a project I'm working on and I can't figure out what is going on. Edit: I'm using Google Chrome 83.0.4103.106