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 767391 - cross-fade() not cross-fading
cross-fade() not cross-fading
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Class: GtkStyleContext
3.21.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-06-08 12:52 UTC by Lapo Calamandrei
Modified: 2016-09-06 10:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Lapo Calamandrei 2016-06-08 12:52:53 UTC
cross-fade() doesn't seem like working, something simple as
`button { background-image: cross-fade(image(red), image(blue)); }` in the inspector on the widget-factory gives me no background-image and a terminal output full of:

(gtk3-widget-factory:24074): Gdk-CRITICAL **: gdk_cairo_set_source_rgba: assertion 'rgba != NULL' failed

(gtk3-widget-factory:24074): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == &GTK_CSS_VALUE_RGBA' failed
Comment 1 rep.dot.nop 2016-06-08 13:46:39 UTC
Motivating example:
I want to apply a tint to the background-image to improve visibility of a hovered row in a treeview.

treeview:hover {
  background-image: cross-fade (90% url("bg.png"), @light_bg_color);
}

explicitly using "bg.png" would be a work around, ideally i'd want to use the existing image and just apply a shade or something.