[Webkit-unassigned] [Bug 62203] New: stroke-dasharray does not handle "none"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 7 05:08:07 PDT 2011


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

           Summary: stroke-dasharray does not handle "none"
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
               URL: http://dev.w3.org/SVG/profiles/1.1F2/test/svg/styling-
                    css-04-f.svg
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: krit at webkit.org
                CC: rwlbuis at gmail.com, zimmermann at kde.org


stroke-dasharray should handle value 'none' but doesn't. This is a parsing bug in parseSVGStrokeDasharray().

See http://trac.webkit.org/browser/trunk/Source/WebCore/css/SVGCSSParser.cpp#L316

I do not plan to work on that. Rob, isn't that something for you? Shouldn't be hard to fix.

We just need a check like in CSSParser.cpp:

if (value->id == CSSValueNone || (value->unit == CSSPrimitiveValue::CSS_STRING && equalIgnoringCase(value->string, "none"))) {
            return primitiveValueCache()->createIdentifierValue(CSSValueNone);

But because we have a comma separated list we have to check for something like "none,3" as well. This would be an invalid string.

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