I added opacity
and scale
to a list element. When I did, they were displayed in front of previous elements when scrolling.
I couldn't find a reason for this behaviour in the CSS specification.
Why do these elements come to front?
Here's a JSFiddle demonstrating the issue:
https://jsfiddle.net/r9utp28v/2/
Just scroll the result down.