SVG elements that are mirrored with scale(-11) don't honour filters |
||||
Issue descriptionUserAgent: 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
,
Aug 21
Adding the secret public label
,
Aug 22
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.)
,
Aug 22
Bisecting indicates that this never worked. So removing the regression label.
,
Sep 6
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 |
||||
Comment 1 by fraser@google.com
, Aug 21