[GTK3] Webpage backgrounds appear grey instead of white with GTK3 3.20+
Categories
(Core :: Layout, defect)
Tracking
()
People
(Reporter: badshah400, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
Reporter | ||
Updated•9 years ago
|
Comment 1•9 years ago
|
||
Reporter | ||
Comment 2•9 years ago
|
||
Reporter | ||
Comment 3•9 years ago
|
||
Comment 4•8 years ago
|
||
Updated•8 years ago
|
Reporter | ||
Comment 5•8 years ago
|
||
Comment 6•5 years ago
|
||
Still present in SeaMonkey 2.49.5. Workaround is to add a rule to userContent.css:
/* Work around mozilla snobbery https://bugzilla.mozilla.org/show_bug.cgi?id=1268618 */
html>body {background-color: white;}
Comment 7•5 years ago
|
||
Here's a better (albeit still simplistic) fix which should also work on pages that explicitly set a transparent background color. Tested with SeaMonkey 2.49.5.
Still present in SeaMonkey 2.49.5. Workaround is to add a rule to userContent.css:
/* Work around mozilla snobbery https://bugzilla.mozilla.org/show_bug.cgi?id=1268618 */
html>body {background-color: white;}
This workaround breaks websites that style html
itself. Better workaround would be to style html
directly instead (haven't found any breakage at least).
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
Sigh, "styling html
workaround" breaks some other sites after all. For examples, sites that use background-size: cover
on body
. I've attached two HTML testcases that show that neither workaround works properly.
Comment 12•5 years ago
|
||
(In reply to Andrew Church from comment #7)
Created attachment 9101486 [details] [diff] [review]
Simplistic patchHere's a better (albeit still simplistic) fix which should also work on pages that explicitly set a transparent background color. Tested with SeaMonkey 2.49.5.
I can confirm that this patch helps on Firefox 68.7.0. Any reason why it's wrong and can't be applied?
Comment 13•5 years ago
|
||
(In reply to WGH from comment #12)
I can confirm that this patch helps on Firefox 68.7.0. Any reason why it's wrong and can't be applied?
The Mozilla developers would have to answer as to whether the patch is "correct". For example, I don't know if eColorID_WindowBackground
is the correct color ID to check for, or if using that ID also affects other contexts where it shouldn't be applied. I don't know my way around the Mozilla codebase and only did enough to fix my immediate problem.
That said, if it works for you, I can't think of any reason it wouldn't be safe to just apply locally.
Comment 14•4 years ago
|
||
I found a fix for this:
Preferences -> Fonts and Colors -> Colors... -> uncheck "Use system colors"
The problem would otherwise even appear today on Firefox 82.0.3, openSUSE Tumbleweed, gtk3 3.24.23, Adwaita theme. I also heard reports that even the Flatpak version is affected.
Updated•2 years ago
|
Description
•