From 27fea1c4fc7e178fd435a4bb0c5d5c836d72ed09 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Fri, 1 Jul 2016 10:01:43 -0300 Subject: [PATCH] css: add documentation for background-blend-mode After introducing the new CSS property, it is natural to add some documentation explaining the behavior of it and our support coverage. https://bugzilla.gnome.org/show_bug.cgi?id=768305 --- docs/reference/gtk/css-properties.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/reference/gtk/css-properties.xml b/docs/reference/gtk/css-properties.xml index 6416dbad6e..9475fbeb76 100644 --- a/docs/reference/gtk/css-properties.xml +++ b/docs/reference/gtk/css-properties.xml @@ -1109,6 +1109,15 @@ We use for syntax productions, and each line is put in a CSS3 not supported: urls without quotes, CSS radial gradients, colors in crossfades + + background-blend-mode + 〈blend-mode〉 [ , 〈blend-mode〉 ]* + normal + + + + only affects multiple backgrounds + box‑shadow none | 〈box shadow〉 [ , 〈box shadow〉 ]* @@ -1144,6 +1153,7 @@ We use for syntax productions, and each line is put in a 〈bg-image〉 = 〈image〉 | none 〈bg-layer〉 = 〈bg-image〉 || 〈position〉 [ / 〈bg-size〉 ]? || 〈bg-repeat〉 || 〈box〉 || 〈box〉 〈final-bg-layer〉 = 〈bg-image〉 || 〈position〉 [ / 〈bg-size〉 ]? || 〈bg-repeat〉 || 〈box〉 || 〈box〉|| 〈color〉 +〈blend-mode〉 = color || color-burn || color-dodge || darken || difference || exclusion || hard-light || hue || lighten || luminosity || multiply || normal || overlay || saturate || screen || soft-light 〈box shadow〉 = inset? && 〈length〉{2,4}? && 〈color〉? @@ -1152,6 +1162,10 @@ We use for syntax productions, and each line is put in a background images are absent or have transparency. + + Alternatively, multiple backgrounds can be blended using the background-blend-mode property. + + Transition properties