Bug 228138 - wide gamut colors in Web content not shown after moving window from sRGB to Display P3 screen until next repaint
Summary: wide gamut colors in Web content not shown after moving window from sRGB to D...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Cameron McCormack (:heycam)
Keywords: InRadar
Depends on:
Reported: 2021-07-20 21:30 PDT by Cameron McCormack (:heycam)
Modified: 2021-07-21 09:07 PDT (History)
4 users (show)

See Also:

test (180 bytes, text/html)
2021-07-20 21:31 PDT, Cameron McCormack (:heycam)
no flags Details
Patch (2.00 KB, patch)
2021-07-20 22:41 PDT, Cameron McCormack (:heycam)
simon.fraser: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cameron McCormack (:heycam) 2021-07-20 21:30:45 PDT
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.
Comment 1 Cameron McCormack (:heycam) 2021-07-20 21:31:02 PDT
Created attachment 433919 [details]
Comment 2 Radar WebKit Bug Importer 2021-07-20 22:36:56 PDT
Comment 3 Cameron McCormack (:heycam) 2021-07-20 22:41:53 PDT
Created attachment 433920 [details]