CSS GrayText computes to black on macOS 10.14
Categories
(Core :: Widget: Cocoa, defect, P1)
Tracking
()
People
(Reporter: gregorydkraus, Assigned: spohl)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
(deleted),
text/html
|
Details | |
(deleted),
patch
|
mstange
:
review+
RyanVM
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Comment 1•6 years ago
|
||
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 5•6 years ago
|
||
This turns out to be due to a change in the way this system color is specified by the OS:
On 10.13, this appears to be: { R:0.5 G:0.5 B:0.5 A:1 }
On 10.14, this appears to be: { R:0 G:0 B:0 A:0.247... }
In other words, 10.14 uses the alpha channel to create a grey that is lighter than what we have on 10.13. I have confirmed that by using an nscolor that takes the alpha channel into account, we exactly match the color in Safari on 10.14.
Comment 6•6 years ago
|
||
Assignee | ||
Comment 7•6 years ago
|
||
Comment 8•6 years ago
|
||
bugherder |
Comment 9•6 years ago
|
||
This affects the Firefox UI in various places. Can we get this uplifted?
Assignee | ||
Comment 10•6 years ago
|
||
Comment on attachment 9036375 [details] [diff] [review]
Patch
[Beta/Release Uplift Approval Request]
Feature/Bug causing the regression: macOS 10.14+
User impact if declined: Various instances of text that is supposed to appear grey will appear black on 10.14. This affects the Firefox UI as well as web content.
Is this code covered by automated tests?: No
Has the fix been verified in Nightly?: Yes
Needs manual test from QE?: No
If yes, steps to reproduce:
List of other uplifts needed: none
Risk to taking this patch: Low
Why is the change risky/not risky? (and alternatives if risky): This is a tiny change to the way we generate the color for disabled text by newly respecting the alpha channel along with the existing RGB values.
String changes made/needed: none
Comment 11•6 years ago
|
||
Comment on attachment 9036375 [details] [diff] [review]
Patch
[Triage Comment]
Fixes a bug causing grey text to appear black instead on macOS 10.14. Approved for 65.0b12.
Comment 12•6 years ago
|
||
bugherder uplift |
Updated•6 years ago
|
Comment 13•6 years ago
|
||
Hello all,
Manage to reproduce the issue on FF Nightly 65.a1(BuildID:20181203214946) on macOS 10.14 (Mojave)
Confirming this issue as verified fixed on the latest FF Nightly 66.0a1(BuildID:20190117215514) and 65.0b12(BuildID:20190117232427) on macOS 10.14 (Mojave).
Description
•