The background-size calculation was a little messy, so at Dave Hyatt's suggestion I've re-worked it. Patch to follow.
Created attachment 20598 [details] patch the patch
Comment on attachment 20598 [details] patch r=me
Committed in r31958.