New issue
Advanced search Search tips

Issue 876446 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

SVG elements that are mirrored with scale(-11) don't honour filters

Project Member Reported by fraser@google.com, Aug 21

Issue description

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

Steps to reproduce the problem:
1. Open attached SVG file.

What is the expected behavior?
The two left squares should be dark blue (no filter), the two right squares should be light blue (filter).

What went wrong?
The top row behaves exactly as expected.

The elements on the bottom row are transformed with scale(-1 1) to mirror them.  The bottom-right square doesn't have the filter correctly rendered.

Did this work before? Yes About two months ago.

Does this work in other browsers? Yes

Chrome version: 70.0.3529.3  Channel: canary
OS Version: OS X 10.13.6
Flash Version: 

Found through Google Blockly:
https://github.com/google/blockly/issues/2014
 
rtl.svg
1.0 KB Download
Can someone remove the automatically created "Restrict-View-Google" tag?  This is not a sensitive issue.
Labels: allpublic
Status: Available (was: Unconfirmed)
Adding the secret public label
Components: Internals>Skia
Labels: OS-Linux OS-Windows
Looks a bit like the light-source is not transformed correctly (but it's also the only primitive in the TC that would be sensitive to a transform.)
Labels: -Type-Bug-Regression Type-Bug
Bisecting indicates that this never worked. So removing the regression label.
Looks like Skia is a bit too creative when computing the transformed light (positions/vectors), and end up with 0 for the Z component of the light position, which makes for the current rendering.

(the SkImageFilterLight::transform implementations for point- and spot-lights)

Sign in to add a comment