{"id":1827,"date":"2009-07-23T06:28:30","date_gmt":"2009-07-23T04:28:30","guid":{"rendered":"http:\/\/blog.ginchen.de\/?p=1827"},"modified":"2012-01-29T18:11:03","modified_gmt":"2012-01-29T17:11:03","slug":"position-fixed-flackert-beim-scrollen-in-firefox-3-5","status":"publish","type":"post","link":"http:\/\/blog.ginchen.de\/en\/2009\/07\/23\/position-fixed-flackert-beim-scrollen-in-firefox-3-5\/","title":{"rendered":"&#8221;position: fixed;&#8221; flickering when scrolling in Firefox 3.5"},"content":{"rendered":"<figure id=\"attachment_1894\" aria-describedby=\"caption-attachment-1894\" style=\"width: 200px\" class=\"wp-caption alignright\"><a href=\"http:\/\/blog.ginchen.de\/wp-content\/uploads\/2009\/07\/firefox3_5-redraw-delay.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.ginchen.de\/wp-content\/uploads\/2009\/07\/firefox3_5-redraw-delay-200x150.jpg\" alt=\"Delayed image buildup in Firefox 3.5\" title=\"Delayed image buildup in Firefox 3.5\" width=\"200\" height=\"150\" class=\"size-thumbnail wp-image-1894\" srcset=\"http:\/\/blog.ginchen.de\/wp-content\/uploads\/2009\/07\/firefox3_5-redraw-delay-200x150.jpg 200w, http:\/\/blog.ginchen.de\/wp-content\/uploads\/2009\/07\/firefox3_5-redraw-delay-300x225.jpg 300w, http:\/\/blog.ginchen.de\/wp-content\/uploads\/2009\/07\/firefox3_5-redraw-delay.jpg 800w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/><\/a><figcaption id=\"caption-attachment-1894\" class=\"wp-caption-text\">Fig. 1<\/figcaption><\/figure>\r\n\r\n<p>Some Windows users may already have noticed it on certain websites: Since the update to the current Firefox version&nbsp;3.5, fixed images (or fixed containers with background images) start flickering terribly when scrolling, so much that it almost hurts your eyes. So it was here on my site with the photos on the left and the coins at the top. A quick Google search revealed that the bug has <a  rel=\"external\" href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=492052\">already been reported<\/a>. In the current nightly build, the error is already fixed; however, the fix will probably not be implemented until the next major update, meaning Firefox&nbsp;4.0 &#8211; and that is certainly still going to be a while.<br \/>\r\nIn the meantime, you can get by with adding <code>overflow: auto;<\/code> to the fixed image\/container. That sure doesn&#8217;t make any sense at all, but it works.<\/p>\r\n\r\n\r\n<!--more-->\r\n\r\n\r\n\r\n\r\n<p>To make things more vivid, I have recreated the problem <a  rel=\"external\" href=\"http:\/\/blog.ginchen.de\/wp-content\/uploads\/2009\/07\/position-fixed-test.html\">here<\/a>. The flickering of the left picture only appears under very distinct circumstances that I&#8217;m not fully able to make sense of. For one thing, there have to be at least two fixed images on the page; a single one won&#8217;t flicker. For another thing, the background you scroll over must have the property <code>overflow<\/code> (or <code>overflow-x<\/code>\/<code>overflow-y<\/code>) set to <code>hidden<\/code>. Furthermore, the two images must not stand too close together &#8211; they only start flickering with a certain distance between them. And finally, the size matters as well: In my test example, the image inside the <code>div<\/code> only flickers if its size is at least 400&#215;345&nbsp;pixels &#8211; that&#8217;s right, 345, and no less!<\/p>\r\n\r\n<figure id=\"attachment_1893\" aria-describedby=\"caption-attachment-1893\" style=\"width: 200px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/blog.ginchen.de\/wp-content\/uploads\/2009\/07\/firefox3_5-position-fixed.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.ginchen.de\/wp-content\/uploads\/2009\/07\/firefox3_5-position-fixed-200x150.jpg\" alt=\"Destroyed Flash objects\" title=\"Destroyed Flash objects\" width=\"200\" height=\"150\" class=\"size-thumbnail wp-image-1893\" srcset=\"http:\/\/blog.ginchen.de\/wp-content\/uploads\/2009\/07\/firefox3_5-position-fixed-200x150.jpg 200w, http:\/\/blog.ginchen.de\/wp-content\/uploads\/2009\/07\/firefox3_5-position-fixed-300x225.jpg 300w, http:\/\/blog.ginchen.de\/wp-content\/uploads\/2009\/07\/firefox3_5-position-fixed.jpg 800w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/><\/a><figcaption id=\"caption-attachment-1893\" class=\"wp-caption-text\">Fig. 2<\/figcaption><\/figure>\r\n\r\n<p>Well, so I was able to remedy the worst defect on this site using <code>overflow:&nbsp;auto;<\/code>. Only in the bottom left corner you can still see the wooden background slightly flicker &#8211; if you have a big screen. That&#8217;s not too disturbing however, so I didn&#8217;t seek a further solution there.<br \/>\r\nStill the scrolling pleasure in Firefox&nbsp;3.5 is sorely afflicted. The browser seems to have severe problems with the redraw, namely in those areas where the fixed <code>div<\/code>s are in the background. The image buildup is delayed so much that you can even capture it on a screenshot! (Fig. 1)<br \/>\r\nAlso, the <code>div<\/code>s overlap all existing Flash objects &#8211; although the latter are of course on layer above them. (Fig. 2)<\/p>\r\n\r\n<figure id=\"attachment_1925\" aria-describedby=\"caption-attachment-1925\" style=\"width: 200px\" class=\"wp-caption alignright\"><a href=\"http:\/\/blog.ginchen.de\/wp-content\/uploads\/2009\/07\/ie8.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.ginchen.de\/wp-content\/uploads\/2009\/07\/ie8-200x150.jpg\" alt=\"Graphical error in Internet Explorer\" title=\"Graphical error in Internet Explorer\" width=\"200\" height=\"150\" class=\"size-thumbnail wp-image-1925\" srcset=\"http:\/\/blog.ginchen.de\/wp-content\/uploads\/2009\/07\/ie8-200x150.jpg 200w, http:\/\/blog.ginchen.de\/wp-content\/uploads\/2009\/07\/ie8-300x225.jpg 300w, http:\/\/blog.ginchen.de\/wp-content\/uploads\/2009\/07\/ie8.jpg 800w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/><\/a><figcaption id=\"caption-attachment-1925\" class=\"wp-caption-text\">Pretty!<\/figcaption><\/figure>\r\n\r\n<p>All in all there are probably only few sites that fulfill the totally crazy conditions for the flickering, so one will not encounter this problem very often. Nevertheless, this bug has shaken my world view to its very foundations. This is the first time my longstanding favorite browser shows an almost IE-like disability. Let&#8217;s hope that it won&#8217;t take too long until version&nbsp;4 and that the usual quality will return with it.<br \/>\r\nOh, and \u00e0 propos IE: Mine lately looks like this now and then :) &rarr;<\/p>","protected":false},"excerpt":{"rendered":"Some Windows users may already have noticed it on certain websites: Since the update to the current Firefox version&nbsp;3.5, fixed images (or fixed containers with background images) start flickering terribly when scrolling, so much that it almost hurts your eyes. So it was here on my site with the photos on the left and the [&hellip;]","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[139],"tags":[98,372,162,53,373,374,173,371,370],"_links":{"self":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts\/1827"}],"collection":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/comments?post=1827"}],"version-history":[{"count":5,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts\/1827\/revisions"}],"predecessor-version":[{"id":5832,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts\/1827\/revisions\/5832"}],"wp:attachment":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/media?parent=1827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/categories?post=1827"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/tags?post=1827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}