[Webkit-unassigned] [Bug 29123] New: Fails to parse the "d" attribute of a path if a command starts with a '.'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 10 06:49:36 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=29123

           Summary: Fails to parse the "d" attribute of a path if a
                    command starts with a '.'
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rrutkowski at gmail.com


The following path will not be parsed
<path d="M.1 0.1l0 .3 .2 0" />
The cause is the last command: ".2 0", which starts with a '.'.

The following examples work fine:
M.1 0.1l0 .3 +.2 0
M.1 0.1l0 .3 0.2 0
M.1 0.1l0 .3 l.2 0
M.1 0.1l0 .3

Test case:
http://strony.aster.pl/rrutkows/test_cases/webkit/svg_path_parse_error/L.svg

Result:
Nothing is displayed. An error appears in the Chrome console:
Error: Problem parsing d="M.1 0.1l0 .3 .2 0"

Expected result:
A black shape resembling a capital letter 'L' should be displayed. Works on
Opera, Firefox and IE+Adobe SVG Viewer.

Tested on Safari 4.0 (530.17) and Chrome 4.0.206.1 (532.0)

-- 
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