-webkit-background-blend-mode fails for certain SVG background layers
Related sample can be found at:
What happens is that if the background layer has a blend mode attached, it seems that the blend mode is inherited by the SVG graphicsContext when performing its painting.
Created attachment 221853 [details]
Comment on attachment 221853 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=221853&action=review
snippets. Otherwise great.
> + [CSS Background Blending] Background blending works
> + incorrectly for certain SVG background layers: the
> + graphics context of the SVG inherits the blend mode set
> + on the background layer. Fix consists in drawing the SVG
> + in a transparency layer.
> + https://bugs.webkit.org/show_bug.cgi?id=127350
> + Reviewed by NOBODY (OOPS!).
The style for changelegs are:
date name email
* changed files
> + (WebCore::SVGImage::draw): begin a transparency layer if a blend mode is set.
> + -webkit-background-blend-mode: multiply, normal;
One value should be enough here, right?
> > LayoutTests/css3/compositing/background-blend-mode-svg.html:12
> > + -webkit-background-blend-mode: multiply, normal;
> One value should be enough here, right?
It is, however, according to the spec, there should be a blend mode specified per background layer.
Created attachment 221858 [details]
Comment on attachment 221858 [details]
Clearing flags on attachment: 221858
Committed r162517: <http://trac.webkit.org/changeset/162517>