Tests paint invalidation on end of opacity transition.
Passes if there is a green square and no red.