[Webkit-unassigned] [Bug 78980] SVG error parsing empty path
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Feb 23 13:11:30 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=78980
--- Comment #3 from Joe Thomas <joethomas at motorola.com> 2012-02-23 13:11:30 PST ---
(In reply to comment #2)
> Overall this change looks good to me, though I think there may be a corner case dealing with animated paths that you may want to consider:
> <path d="M700,200 h-150 a150,150 0 1,0 150,-150 z" fill="red" stroke="blue" stroke-width="5">
> <animate attributeName="d" from="" to="" dur="1s" repeatCount="indefinite" />
> </path>
>
> In this example I think the path should become disabled, but I think an argument could be made the other way. FWIW, Firefox does disable the path in this case but we don't.
I feel that webkit behavior is correct. If 'from' and 'to' values are empty, we should respect the 'path data' value in "path" element for better UX.
FYI, If I apply animation to 'opacity' with 'from' and 'to' empty, then firefox respects the opacity attribute value mentioned in the path element.
<path d="M500,200 h-150 a150,150 0 1,0 150,-150 z" opacity=".5" fill="red" stroke="blue" stroke-width="5" >
<animate attributeName="opacity" from="" to="" dur="1s" repeatCount="indefinite" /> </path>
I am not an expert in this area, please correct me if I am wrong. Also, it might be good to handle this corner case in a different bug.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list