SVG appearing outside IMG bounds when printed
Reported by
inexorab...@gmail.com,
Sep 29 2017
|
||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 Steps to reproduce the problem: 1. Save the files locally 2. Open booklet.html 3. Observe that the image is contained in its bounding box 4. Print - make sure Save as PDF is selected What is the expected behavior? Print matches screen - the image is contained in its bounding box What went wrong? Parts of the SVG image which are clipped within the SVG itself - and occur outside the image bounds - appear outside the bounding box of the image. Did this work before? N/A Does this work in other browsers? N/A Chrome version: 61.0.3163.100 Channel: stable OS Version: OS X 10.12.6 Flash Version:
,
Sep 29 2017
Able to reproduce the issue on Windows 10, Mac 10.12.6, Ubuntu 14.04. Issue is a regression broken in M55 builds. Below are the bisect details for the same: Bisect Info: ============ 55.0.2879.0 - Good Build 55.0.2880.0 - Bad Build Change Log: https://chromium.googlesource.com/chromium/src/+log/3186773510907edfda53bf8fef382a087f61c6f4..e385b0636d1295f643c7e32e28e396b990067318 From the third party roll: https://chromium.googlesource.com/skia.git/+log/7de577983581..2ebd0c80a2a9 suspecting below change could be a possible culprit: https://chromium.googlesource.com/skia.git/+/0f147ac2ae575bbad3515a526f13700bc5c8e9d7 @ bsalomon: Assigning to you, request you to please take a look into it. Please help us to find an owner if not with respect to your change. Thanks.!
,
Sep 29 2017
,
Oct 2 2017
FYI the reporter is me in my non-work identity; let me know if I can help out! Just don't assign to me since I'm clueless about the rendering side of Blink Interestingly, a similar bug appears to manifest in other browers; I'm assuming it's just a lack of test coverage since I can't fathom that the behavior is intentional.
,
Oct 2 2017
Given that it's a clipping issue, https://chromium.googlesource.com/skia.git/+/a3b45d4f7db953472df4f11ab1595964b65175f9 looks like a more likely culprit, but again I'm clueless about pushing pixels around.
,
Oct 5 2017
Has anyone found any sort of workaround for this? Printing SVGs out of chrome is a significant feature on one of our tools and this has hit us pretty hard. We have some machines running old versions, but that is the only thing we can think of right now.
,
Oct 10 2017
Not a regression for tracking purposes because it happened back in 55.
,
Jan 8 2018
Has there been any update on this at all? Is it still on someone's radar?
,
Jan 9 2018
Sorry for letting this lie for so long. Taking a look.
,
Jan 10 2018
,
Jan 10 2018
Simplified test case attached
,
Apr 25 2018
I think this may be 772685, so marking as fixed.
,
Apr 25 2018
Tried this on tip-of-tree. With the original repro case: rather than not being clipped (original bug), potentially clipped elements are simply missing. They reappear in print preview if print settings are changed to Landscape or Tabloid mode. Once I'm back on a desktop machine I'll try and bisect since it could be a separate issue, not a bad fix, but something is still very wrong with clipping. :(
,
Apr 26 2018
Yeah, this is still busted, just in a different way. Instead of elements being clipped they simply disappear. :( I filed a new bug: issue 837279 |
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by ranjitkan@chromium.org
, Sep 29 2017