Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle cases when Animation.persist() does not exist #33282

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Nov 16, 2024

  1. fix: handle cases when Animation.persist() does not exist

    The Animation.persist() API is in our full suport matrix but
    was added after browsers in our partial support matrix. As no
    polyfill exists for this feature and it cannot be compiled away
    this commit explicitly handles the case when the API does not exist.
    
    When .persist() is not available we short-circuit the animation, using
    the existing "is reduced motion" code path to make the animation
    effectively instant while still firing all animation events, etc.
    spmonahan committed Nov 16, 2024
    Configuration menu
    Copy the full SHA
    7bc2876 View commit details
    Browse the repository at this point in the history
  2. change file

    spmonahan committed Nov 16, 2024
    Configuration menu
    Copy the full SHA
    6b1dee4 View commit details
    Browse the repository at this point in the history