Created attachment 430074 [details] test Noticed this while working on bug 226399. Only tested on macOS. STR: 1. Open the test case. 2. Resize the Safari window as small as possible while still showing the entire blue-bordered element. 3. Scroll the blue-bordered element down. 4. Notice that about half way through the scrollable area, the gradient changes colors slightly. I reproduced on the oldest Safari I could run on my Big Sur machine.
<rdar://problem/78642026>
The cached image buffer created by GradientImage::drawPattern() needs to match the destination colorspace.