Please visit my new campsite listing site ukcampingmap.co.uk


Posts Tagged ‘strangeness’

Chrome’s rendering of animated gifs

Friday, April 3rd, 2009

A few months ago I posted a method of having animation effects on navigation without using javascript or flash; simply using two tiny animated gifs. I noticed at the time that in firefox, one of the more standards compliant browsers, you had to include multiple copies of the gifs to achieve the animation as firefox seemed to use the same copy of the image, in the same state, when it switched from being the background of one link to being the background of another.

But I later realised that Google Chrome doesn’t animate the gifs at all after they’ve been loaded on the page once. It stores the state of the image even when it’s not being used by anything on the page.

I’m not sure which browser is right. I’m inclined to suspect that Chrome is closest to being right, simply because it’s furthest away from what ie6 does. Being “inclined to suspect” isn’t, however a very committed belief. What is the correct behaviour for a background image animated gif?

On a completely unrealted note, Two strange things happened in shops today.

  1. I paid for a goat’s cheese, walnut and honey bagel, costing 3euro, with two 2euro coins. The girl asked me if I had any smaller money.
  2. At the supermarket the cashier asked me again for the money just after I’d given it to her.

Events such as these make me worry about the state of the economy.