Bug 271921 - SVG animate element's begin/end attribute set by js, should animate
Summary: SVG animate element's begin/end attribute set by js, should animate
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2024-03-29 17:13 PDT by Ahmad Saleem
Modified: 2024-04-05 17:14 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Saleem 2024-03-29 17:13:10 PDT
Hi Team,

While going through Blink's commit, I came across another failing test case in Safari / WebKit.

Test Case: https://jsfiddle.net/6j1bx7dh/

^ Passes in Firefox Nightly 126 and Chrome Canary 125 - click on 'black' box and it will finish and show 'PASS' in other while 'Time Out' in Safari.

Blink's Commit: https://src.chromium.org/viewvc/blink?view=revision&revision=195296

If I do changes here, it does not work:

WebKit Source: https://searchfox.org/wubkat/rev/d113ccd097082b7db803786051566b6abd7ceffe/Source/WebCore/svg/animation/SVGSMILElement.cpp#553

Changes (in local build - but didn't fix the test case):

case AttributeNames::beginAttr:
        if (isConnected()) {
            connectConditions();
            beginListChanged(elapsed());
        }
        break;
    case AttributeNames::endAttr:
        if (isConnected()) {
            connectConditions();
            endListChanged(elapsed());
        }
        break;
    default:
        break;

__

It does not work.

Just raising so we can track it.

Thanks!
Comment 1 Radar WebKit Bug Importer 2024-04-05 17:14:13 PDT
<rdar://problem/125998420>