[Webkit-unassigned] [Bug 225871] New: Transition started from requestAnimationFrame differs from other browsers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 17 08:09:55 PDT 2021


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

            Bug ID: 225871
           Summary: Transition started from requestAnimationFrame differs
                    from other browsers
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Animations
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: simon.fraser at apple.com
                CC: dino at apple.com, graouts at apple.com

https://safari-raf-bug.glitch.me shows an issue where WebKit behavior differs from Chrome and Firefox. The testcase is:

document.querySelector('button').addEventListener('click', () => {
  const test = document.querySelector('.test');
  test.style.transform = 'translate(400px, 0)';

  requestAnimationFrame(() => {
    test.style.transition = 'transform 3s linear';
    test.style.transform = 'translate(200px, 0)';
  });
});

Safari transitions from 400px to 200px. Other browsers transition from 0 to 200px;

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210517/b1dd2fd2/attachment.htm>


More information about the webkit-unassigned mailing list