After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 602217 - Text in some form widgets (entry and combobox) is hardcoded to black color, unreadable with dark themes
Text in some form widgets (entry and combobox) is hardcoded to black color, u...
Status: RESOLVED NOTGNOME
Product: epiphany
Classification: Core
Component: Backend
3.6.x (obsolete)
Other Linux
: Normal major
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
: 584725 680382 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-11-17 16:47 UTC by Jeremy Nickurak
Modified: 2017-02-12 18:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of this bug entry dialog (59.17 KB, image/png)
2009-11-17 16:47 UTC, Jeremy Nickurak
Details
Screenshot of affected google search dialog (58.63 KB, image/png)
2009-11-17 16:48 UTC, Jeremy Nickurak
Details
Screenshot with 3.6 on Fedora's start page (103.64 KB, image/png)
2012-10-07 14:50 UTC, Jean-François Fortin Tam
Details

Description Jeremy Nickurak 2009-11-17 16:47:04 UTC
Created attachment 147983 [details]
Screenshot of this bug entry dialog

Inputs, including selection boxs, buttons, and text input fields are often unreadable under default settings with a dark-text-on-light-background theme. See the attached screenshots.

Running epiphany 2.29.1 under ubuntu karmic, but has been happening for several releases.
Comment 1 Jeremy Nickurak 2009-11-17 16:48:04 UTC
Created attachment 147984 [details]
Screenshot of affected google search dialog
Comment 2 Adi Roiban 2010-01-28 06:24:41 UTC
It looks like this is specific to Epiphany since in Chromium everhing is OK, and I guess they are both using Webkit-GTK.
Comment 3 Gustavo Noronha (kov) 2010-01-28 13:20:02 UTC
(In reply to comment #2)
> It looks like this is specific to Epiphany since in Chromium everhing is OK,
> and I guess they are both using Webkit-GTK.

You guess wrongly =). chromium has its own, multi-platform port of webkit.
Comment 4 Jean-François Fortin Tam 2012-10-07 14:47:58 UTC
Confirming this too on 3.6: gtk entry widgets and comboboxes have a hardcoded black text color, which doesn't work if the widget itself is dark too. To test, use gnome-tweak-tool's "Enable dark theme for all applications" in 3.6.

Gustavo, is there a known upstream bug for this in webkit or webkit gtk?
Comment 5 Jean-François Fortin Tam 2012-10-07 14:50:20 UTC
Created attachment 225990 [details]
Screenshot with 3.6 on Fedora's start page
Comment 6 Jean-François Fortin Tam 2012-10-07 14:51:02 UTC
*** Bug 680382 has been marked as a duplicate of this bug. ***
Comment 7 Jean-François Fortin Tam 2012-10-07 14:54:35 UTC
*** Bug 584725 has been marked as a duplicate of this bug. ***
Comment 8 Claudio Saavedra 2014-01-13 16:35:51 UTC
I filed this in the wk bug tracker: https://bugs.webkit.org/show_bug.cgi?id=126907
Comment 9 Jean-François Fortin Tam 2014-01-14 03:59:12 UTC
If it can help for the testing phase, here's a page with a nice variety of forms: https://miketaylr.com/pres/html5/forms2.html

As of Epiphany 3.10/Webkit 2.2.3, the text/password/search entries and combobox widgets are misbehaving with dark Adwaita.

http://www.w3schools.com/html/tryit.asp?filename=tryhtml_textarea reveals that textarea is also affected.
Comment 10 Michael Heyns 2014-04-20 10:16:37 UTC
I can confirm this is still an issue in 3.12
Comment 11 kapouer 2014-10-05 14:03:36 UTC
You can temporarily work around this by setting
input,select,textarea,option {
	background-color:initial;
	color:initial;
}
select {
	color:white;
}
in ~/.config/epiphany/user-stylesheet.css (accessible using preferences in epiphany 3.14).

The "color:white" is the most disputable setting since it will make black-on-white themes fail
to be readable.
Comment 12 Lasse Schuirmann 2014-10-22 10:39:41 UTC
Can't we work around this in epiphany and keep this open until the webkit-gtk guys do something?

This is a major bug that existed for almost five years by now. I'd guess we can use the theme colors to enhance the workaround from https://bugzilla.gnome.org/show_bug.cgi?id=602217#c11 to have better support for a11y themes as well as dark themes.
Comment 13 KTP 2015-01-27 10:11:44 UTC
Thanks for the workaround posted above.  Amazed that this isn't fixed yet.
Comment 14 Michael Catanzaro 2015-06-11 18:34:50 UTC
Closing this since it's been reported on WebKit Bugzilla.
Comment 15 Michael Catanzaro 2016-02-13 18:31:59 UTC
(In reply to Lasse Schuirmann from comment #12)
> Can't we work around this in epiphany and keep this open until the
> webkit-gtk guys do something?

Nope, it has to be fixed in WebKit; all the Epiphany developers are WebKit developers anyway, we just don't know what to do. :)
Comment 16 Jean-François Fortin Tam 2016-03-09 04:06:39 UTC
FWIW, this variant of comment 11's workaround gives me shitty contrast but it "works" in both light and dark modes (and without losing the native widgets):

input,select,textarea,option {
	color:gray;
}
Comment 17 what103 2017-02-12 13:28:28 UTC
some 
$epiphany --version
Web 3.23.5

settings.ini
gtk-application-prefer-dark-theme=1

and background this form dark and color text black also other all sites.

if i make ~/.config/gtk3.0/gtk.css
:focus {
	color:gray;
}

i see normal, but why no deferend gui and web pages element?
if i add 
button{background:green}
all button on pages and gui epiphany stay green.

thanks.
Comment 18 what103 2017-02-12 13:34:54 UTC
sry, this https://bugzilla.gnome.org/show_bug.cgi?id=602217#c17 not work. text in form black background 333
Comment 19 what103 2017-02-12 18:45:28 UTC
work! for form and input. if i enable in settings options "Use custom stylesheet", but element select on page stay dark.