New issue
Advanced search Search tips

Issue 753475 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Aug 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

SVG not rendered correctly

Reported by ivan.kuc...@gmail.com, Aug 8 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36

Steps to reproduce the problem:
1. Look at this SVG: https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/juanmontoya_lingerie.svg

What is the expected behavior?

What went wrong?
I think that the result should look different. I am making my own SVG parser and rasterizer (which is not complete yet), and I am getting this: http://i.imgur.com/PDkbVsw.png 

BTW. it looks the same in Firefox as in Chrome. It is sad to see, that both browsers used the same buggy code, instead of writing their own :(

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 60.0.3112.90  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 26.0 r0
 
Here is my result at a better resolution with masks (but without patterns) http://i.imgur.com/aBblldB.jpg 
Components: Blink>SVG
Labels: Needs-Triage-M60 M-62 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on Windows-10, Ubuntu 14.04 and Mac OS 10.12.6 using chrome latest stable #60.0.3112.90 .

This issue is seen on older version of chrome M35-35.0.1849.0 as well. Hence marking it as untriaged.
Labels: -Needs-Triage-M60 BugSource-User PaintTeamTriaged-20170809
Status: WontFix (was: Untriaged)
Edge also agrees with Chrome and Firefox. The issue is with the maskUnits attribute of the mask.
I tried to remove two maskUnits attributes and the whole girl is visible now. So the creator made SVG incorrectly? I thought we can trust it, because it comes from w3.org .

It probably looked alright in times of creation, but today it looks differently. Maybe the SVG is created in some older SVG specification, and browsers interpret it as a newer specification? What do you think?
I honestly don't know what might have changed over time. SVG implementations have improved greatly over the last few years and my guess is that we now all correctly apply the mask units that were not supported correctly before. I'm not aware of spec changes in this area but then I do not follow closely.
I just thought that somebody could look into the file and say why exactly it looks the way it looks. The same look in three browsers is not a proof that the three browsers must be correct.
Yes, not proof of correctness. But very likely correct for well settled and clearly defined spec like this.

Comment 8 by f...@opera.com, Aug 9 2017

My guess would be that the original generator did not factor in the additional clip that will be formed by 'x', 'y', 'width' and 'height' (looking at the bbox of the <path> within the <mask> and comparing to what 'x', 'y', et.c would resolve to it seems the <path> will be outside/to the right of the additional clip.) I don't know whether Inkscape 0.46 properly supported the additional clip, but maybe it didn't. It's also quite possible that SVGWeb itself did not support the additional clip, and so no one noticed ("two wrongs make a right".)
Also note that the file in question is not really part of the spec or in any way authorative (it's rather just a part of a hosted version of the SVGWeb "polyfill".)
And this is also not a "proof", but doing that would really require minimizing this file to something with less "moving parts" that is easier to assess correctness of. (From one implementor to another: minimizing stuff like this is really an essential skill, so this may a good exercise for you ;-))

Sign in to add a comment