Open Bug 1900520 Opened 1 year ago Updated 7 months ago

Some colors appear wrong with Windows HDR active

Categories

(Core :: Graphics, defect)

Firefox 126
defect

Tracking

()

UNCONFIRMED

People

(Reporter: dogelition, Unassigned, NeedInfo)

Details

Attachments

(5 files)

With Windows HDR enabled, some colors on certain pages look way oversaturated. This effect is visible on the display and on HDR screenshots (captured via IDXGIOutputDuplication), but not on regular SDR screenshots (captured with a screenshotting application such as ShareX). It also doesn't happen with hardware acceleration disabled.

I can consistently reproduce this issue by looking at Discord messages that contain a mention, which appear highlighted in yellow. If the browser window is large enough for the entire content of the channel to fit on screen, the color appears as it should. But as soon as the window is small enough that the content overflows and a scroll bar appears, the color appears oversaturated. See the attached screenshots.

Another instance I found is on GitHub: If you use the web editor to edit a file, then click "Commit changes...", an overlay window prompting you for a commit message appears. While this window is on screen, the colors in the change list appear oversaturated. However, this only happens if the change list is long enough to require a scroll bar. See the attached screenshots for a comparison between Windows HDR enabled and disabled.

From these examples, it looks like this issue only ever happens when content overflows and the colors are alpha-composited. The yellow color on Discord is composited from a yellow foreground color and the gray background, while GitHub's overlay window dims the background. However, there seems to be more to it, as I have been unable to create a minimal example that triggers this issue, even when using the same CSS rules as these sites.

I reproduced this issue on regular Firefox (build 20240526221752) and Developer Edition (20240531105723), on Windows 10 with the latest updates.

Severity: -- → S3
Flags: needinfo?(jgilbert)

I reproduced it on latest Firefox stable 127.0.2 (64-bit) on Windows 11 23H2
On my machine it reproduces depending on "Automatically manage colors for apps" window setting (Settings -> Display -> Advanced Settings)
With this option enabled, bug reproduced
With this option disabled, but no longer reproduces
Example of page that reproduces the bug - https://github.com/microsoft/DirectXShaderCompiler/pull/6720/files

Attached file DxDiag.txt

dxdiag report for above mentioned computer that reproduces the bug

I also encountered this issue on Firefox Dev Edition 140.0b7 and Firefox Browser 139.0.4 on Windows 11, version 23H2, I don't have access to the "Automatically manage colors for apps" setting for some reason, so I could not check if disabling it solves the issue

Redirect a needinfo that is pending on an inactive user to the triage owner.
:bhood, since the bug has recent activity, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jgilbert) → needinfo?(bhood)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: