Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Learn More

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

GIF animation is reset when a new image is added to the page.

  • 1 відповідь
  • 1 має цю проблему
  • 7 переглядів
  • Остання відповідь від cor-el

more options

Hello! Short story: I recently discovered that adding a new GIF image to a page resets the animations of existing GIF images on the page with the same src.

Expected behavior: Adding a new GIF image to the page should not reset the animation of existing images with same src.

Actual result: Adding a new GIF image to the page resets the animation of all existing GIF images on the page with same src.

Code with example: https://codesandbox.io/s/heuristic-platform-jsguir Video demo: https://www.youtube.com/watch?v=k-ZMrrqq_KI

Simplified version of the code showing unexpected behavior: https://codesandbox.io/s/elastic-shtern-vwrcx1

Does anyone know why this is happening? Is this a bug?

Browser: Firefox Developer Edition 102.0b4 (64-bit) OS: Windows 11

Hello! '''Short story''': I recently discovered that adding a new GIF image to a page resets the animations of existing GIF images on the page with the same src. '''Expected behavior''': Adding a new GIF image to the page should not reset the animation of existing images with same src. '''Actual result''': Adding a new GIF image to the page resets the animation of all existing GIF images on the page with same src. Code with example: https://codesandbox.io/s/heuristic-platform-jsguir Video demo: https://www.youtube.com/watch?v=k-ZMrrqq_KI Simplified version of the code showing unexpected behavior: https://codesandbox.io/s/elastic-shtern-vwrcx1 Does anyone know why this is happening? Is this a bug? '''Browser''': Firefox Developer Edition 102.0b4 (64-bit) '''OS''': Windows 11

Усі відповіді (1)

more options

I think that all GIF image animations use the same code and that they are somehow synchronous (i.e. use the same frame timings). It is possible that loading a new GIF image resets this code and causes it to restart all GIF animations. In that case there is not much you can do about this.