Bug 264996

Summary: [GTK] `color-scheme: light dark` shows white text on white
Product: WebKit Reporter: johnfactotum1
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply, mcatanzaro, robin
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Testcase none

Description johnfactotum1 2023-11-16 18:24:49 PST
Created attachment 468636 [details]
Testcase

To reproduce:
- Enable "Dark Style" in GNOME.
- Open Epiphany.
- Open something that has `color-scheme: light dark`.

Expected behavior:
- It renders the page with white text on a dark background.

Actual behavior:
- It show white text on a white background.

Additional context:
- I think this is similar to https://bugs.webkit.org/show_bug.cgi?id=202194 but I'm still seeing this in Epiphany Technology Preview 45.0-51-gbeb7b7222+
- The problem goes away after reloading the page.
Comment 1 Michael Catanzaro 2023-11-17 06:18:45 PST
I wonder when was the last good version. :(
Comment 2 robin 2024-05-25 09:38:05 PDT
I think severity here is quite high, since it can make pages that rely on color-scheme without custom styling appear entirely blank.

Reproduced today on Web 46 (WebKitGTK 2.44.1) and Epiphany Technology Preview 46.0-89-g1aca13c01+ (WebKitGTK 2.45.2).