New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 850897 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Mac
Pri: 2
Type: Compat



Sign in to add a comment

mix-blend-mode not working on SVGs

Reported by kamil.wy...@uxpin.com, Jun 8 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36

Example URL:
https://jsfiddle.net/Nippon/qkdhbr7c/

Steps to reproduce the problem:
1. Add mix-blend-mode with any value to SVG content

What is the expected behavior?
I.e. for the "luminosity" and white background - svg file should be rendered as black&white.

What went wrong?
Mix-blend-mode is not working

Does it occur on multiple sites: N/A

Is it a problem with a plugin? N/A 

Did this work before? Yes 66

Does this work in other browsers? Yes

Chrome version: 67.0.3396.79  Channel: stable
OS Version: OS X 10.13.1
Flash Version:
 
Components: Blink>SVG
Cc: f...@opera.com
Status: Available (was: Unconfirmed)
Firefox does what we do. Is this a spec issue?

Comment 3 by f...@opera.com, Jun 8 2018

I'd suspect this to be something with the "document canvas" and how that interacts with things on top of it. FTR, my FF Nightly renders differently to my trunk Content Shell, so I'm definitely seeing the issue described.
Labels: OS-Android OS-Linux OS-Windows
Owner: trchen@chromium.org
Status: Assigned (was: Available)
I can actually repro this on Linux.  The bisect points waaay back (M57ish):

You are probably looking for a change made after 438282 (known good), but no later than 438302 (first known bad).
CHANGELOG URL:
  https://chromium.googlesource.com/chromium/src/+log/e8d3e064a6010ee79aca71eb8dea18096fc7822c..66e4177886b272950cafc7dabed256025dcf7013


Looks like https://chromium.googlesource.com/chromium/src/+/cf97fd35cae7ca6fae58cff6eea2f6cc59716171.
chromium.png
115 KB View Download
ff.png
74.0 KB View Download
Status: WontFix (was: Assigned)
Working as spec'd. If this "works" in other browser, bugs shall be filed against other browsers.

The SVG image blends onto a transparent backdrop created by the root stacking context, then the root stacking context paints on top of the white document background.

Note that the white background on <body> element isn't really used by <body> thus not paint into the root stacking context, due to a infamous CSS quirk known as background stealing: https://www.w3.org/TR/css-backgrounds-3/#special-backgrounds

To achieve the intended behavior (i.e. SVG blends onto a white backdrop), the white background must paint into the root stacking context. This can be done by specifying a white background on some element other than <html> and <body>, or set the background of both <html> and <body> to white.

Sign in to add a comment