Closed Bug 1730603 Opened 3 years ago Closed 3 years ago

HCM incorrectly backplates when using semi-transparent system colors

Categories

(Core :: Layout, defect)

defect

Tracking

()

RESOLVED FIXED
94 Branch
Accessibility Severity s2
Tracking Status
firefox94 --- fixed

People

(Reporter: morgan, Assigned: emilio)

References

Details

(Keywords: access, Whiteboard: [hcm-2021-h2])

Attachments

(1 file)

Currently in about:preferences on MacOS, when HCM is enabled buttons render as white text on a white backplate. This is because the system color we use for button backgrounds is semi-transparent white, which gets "forced" to opaque white when we climb the frame tree looking for a backplate color.

Keywords: access
Whiteboard: [access-s2]

This should ensure the correct behavior when system colors are
semi-transparent, like on macOS on dark mode.

Testing this without hard-coding the system color seems hard (and I
think macOS on automation might not even hard native dark mode support
anyways).

In fact, if it did I think backplat-bg-image-006 would've caught it.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/07cc0233e347
Blend with ancestor backgrounds until we compute an opaque backplate color. r=morgan
Pushed by emilio@crisal.io:
https://hg.mozilla.org/integration/autoland/rev/13b542ebd739
Use standins if forced to in nsNativeBasicTheme.
Pushed by ccozmuta@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/15b1fe3aa4d0
Fix reftest failures.r=emilio. CLOSED TREE
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
Regressions: 1731052
Whiteboard: [access-s2] → [access-s2][hcm-2021-h2]
Accessibility Severity: --- → s2
Whiteboard: [access-s2][hcm-2021-h2] → [hcm-2021-h2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: