When a link class name is changed right before the browser leaves the current page, and if that new class name has a background image defined, that background image is not loaded.
Created attachment 56223 [details] Testcase
This happens all the way from Safari 3 to recent versions.
See also: bug 30457.