Assuming this is a WebKit bug. STR: 1. Have a machine with two displays, one Display P3 and the other sRGB. 2. Open a new Safari window on the sRGB display and load the attached test. Notice the two red rectangles are the same color. 3. Move the window to the Display P3 display. Notice the two rectangles are still the same color. 4. Press Cmd+R. Notice the two rectangles are now different colors. Forcing a repaint of the document also makes the display-p3 color show up correctly.
Created attachment 433919 [details] test
<rdar://problem/80878587>
Created attachment 433920 [details] Patch