Thursday, November 27, 2008

IE 8 beta 2 1px Background Image Zoom Bug

IE 8 beta 2 has a nasty little bug with Background Images. If they have a width or height of 1px because you use it for repeat-x or repeat-y backgrounds you will get very dissapointed if zooming your Template smaller than 100%.

Somehow IE calculates 1px < 100% must be 0px which means the background dissapears even with repeat statement.

Workaround ist to use bigger sizes, at least 2px but i am not sure if you will get problems at < 50% so i use 10px now, at least for IE8 (conditional comments are a savior).

No comments: