Text background must stay transparent in HCM
Categories
(Core :: Layout: Text and Fonts, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox113 | --- | fixed |
People
(Reporter: calixte, Assigned: fchasen)
References
Details
(Whiteboard: [fidefe-quality-foundation] )
Attachments
(4 files)
STR:
- switch to HCM;
- load the attachment;
Both background and foreground colors are set to transparent and it's respected but not for the text background itself.
For the context, in the pdf viewer we've a transparent div containing the transparent text on top of a canvas (where the pdf is drawn) and in HCM having this opaque color is a bit paintful. It'd help us to fix some bugs if it could be transparent.
Comment 1•1 year ago
|
||
Backplating is a feature, not a bug. That said, Fred recently implemented forced-color-adjust: none
which seems like it should probably also prevent backplating.
Seems like a check around here should do.
Fred, do you have the cycles to take this?
Assignee | ||
Comment 3•1 year ago
|
||
Thanks, yep I'll take a look. I think this is the same issue I was seeing in https://bugzilla.mozilla.org/show_bug.cgi?id=1811140, where absolutely positioned content always received a backplate despite being set as transparent. PDF viewer already has none set for forced color adjust so should be fixed once this issue is.
Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Assignee | ||
Comment 4•1 year ago
|
||
Prevents backplates from being drawn for any text that has forced-color-adjust: none set by checking the value of StyleText()->mForcedColorAdjust.
Pushed by fchasen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0dc8af92d56c Prevent drawing backplate when forced-color-adjust is none r=emilio
Comment 6•1 year ago
|
||
bugherder |
Updated•1 year ago
|
Comment 7•11 months ago
|
||
I've reproduced this issue using Firefox 112.0b1 on Windows 10 x64 following the STR from Comment 0.
The issue can still be reproduced in the latest Nightly 114.0a1 and Firefox 113.0b9 versions with High Contrast Black ON under same configuration.
In Google Chrome the text Hello World!! is rendered on a black background.
Is there a pref that we should flip in order to verify this issue?
Please see the attachment.
Comment 8•11 months ago
|
||
Comment 9•11 months ago
|
||
The test-case is missing a forced-color-adjust: none
.
Description
•