[Webkit-unassigned] [Bug 89308] New: keySplines attribute ignored when no values-like attribute specified

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jun 17 09:26:44 PDT 2012


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

           Summary: keySplines attribute ignored when no values-like
                    attribute specified
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: alexandru.m.birsan at gmail.com
                CC: zimmermann at kde.org


When creating an animation that only specifies the to, from and/or by attributes, the keySplines attribute is ignored. The keySplines attribute works fine with the values attribute.

I found a workaround is to specify the keyTimes="0;1" attribute.

An example in the wild: http://hoffmann.bplaced.net/svgtest/anitrafokeysplines01.svg

Inline example:

<!-- doesn't work -->
<rect x="0" y="0" width="0" height="50" fill="red">
    <animate attributeName="width" to="300" dur="3s" calcMode="spline" keySplines="0.42,0,0.58,1" fill="freeze" />
</rect>


<!-- works because of keyTimes attribute -->
<rect x="0" y="50" width="0" height="50" fill="red">
    <animate attributeName="width" to="300" dur="3s" calcMode="spline" keyTimes="0;1" keySplines="0.42,0,0.58,1" fill="freeze" />
</rect>


<!-- works because of values attribute -->
<rect x="0" y="50" width="0" height="50" fill="red">
    <animate attributeName="width" values="0;300" dur="3s" calcMode="spline" keySplines="0.42,0,0.58,1" fill="freeze" />
</rect>

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