css: Support the image() notation

Desktop / GNOME / GTK - Matthias Clasen [redhat.com] - 29 January 2016 23:29 UTC

This lets us do fallback in case an image format is not supported, and also lets us provide solid-color images. We don't support image fragment notations.

See ttps://www.w3.org/TR/css3-images/#image-notation

https://bugzilla.gnome.org/show_bug.cgi?id=761318

2e4b1e7 css: Support the image() notation
docs/reference/gtk/css-overview.xml | 20 ++-
gtk/Makefile.am | 2 +
gtk/gtkcssimage.c | 4 +-
gtk/gtkcssimagefallback.c | 255 +++++++++++++++++++++++++++++++++++
gtk/gtkcssimagefallbackprivate.h | 59 ++++++++
5 files changed, 338 insertions(+), 2 deletions(-)

Upstream: git.gnome.org


  • Share