{"id":2025,"date":"2010-02-11T22:10:43","date_gmt":"2010-02-11T21:10:43","guid":{"rendered":"http:\/\/www.bitvolution.com\/?p=691"},"modified":"2010-02-11T22:10:43","modified_gmt":"2010-02-11T21:10:43","slug":"firefox-3-6-opacity-crash-in-linux","status":"publish","type":"post","link":"https:\/\/www.tomfotherby.com\/blog\/index.php\/2010\/02\/firefox-3-6-opacity-crash-in-linux\/","title":{"rendered":"Firefox 3.6 opacity crash in Linux"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.tomfotherby.com\/blog\/wp-content\/uploads\/2010\/02\/bugAsAChip.jpg?resize=216%2C147&#038;ssl=1\" alt=\"Microchip as a bug\" width=\"216\" height=\"147\" class=\"alignleft size-full wp-image-697\" \/><\/p>\n<p>A website that I was working on suddenly started crashing Firefox 3.6 on my PC (Ubuntu 9.10, 64bit). I&#8217;m talking a full out hang with 100% CPU usage and a frozen mouse and keyboard and the only way to recover is to remote login from a 2nd PC and kill the Firefox process.<\/p>\n<p>I found the cause of the crash and it was a single line of recently added CSS code at the top of the websites stylesheet: <code>body { opacity: 0.9999; }<\/code><\/p>\n<p>So, if you run a website, be careful of non-100% <em>opacity<\/em> when it affects many elements. I have hosted <a href=\"http:\/\/www.bitvolution.com\/demo\/firefox36opacitybugtest.html\">a page that reproduces the issue<\/a> and found a bug that tracks the issue: <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=279890\">#279890<\/a>. This CSS is also a problem on Windows &#8211; it causes text to blur horribly in IE 7 in some situations.<\/p>\n<p><em>What is that CSS for anyway?<\/em> Firefox 2.0 on Macs used to have a problem where text could dim or get bold or flicker when a animated effect that changed the opacity of an element was used. It was caused because the use of a <em>opacity filter<\/em> triggered the Gecko rendering engine to switch from the operating system\u2019s method of anti-aliasing to its own internal method. Whenever opacity dropped below 100% the mode switched and resulted in a defect such as a flicker or blink. The fix was simple &#8211; all that was needed was to add <code>body { -moz-opacity: 0.9999; }<\/code> to the stylesheet because it would force Firefox to use a consistent text rendering method.<\/p>\n<div style=\"font-family:Purisa,arial\">Hack == Bug<\/div>\n","protected":false},"excerpt":{"rendered":"<p>A website that I was working on suddenly started crashing Firefox 3.6 on my PC (Ubuntu 9.10, 64bit). I&#8217;m talking a full out hang with 100% CPU usage and a frozen mouse and keyboard and the only way to recover is to remote login from a 2nd PC and kill the Firefox process. I found [&hellip;]<\/p>\n","protected":false},"author":52,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[79],"tags":[98,99,97],"class_list":["post-2025","post","type-post","status-publish","format-standard","hentry","category-technical","tag-bug","tag-firefox","tag-webdevelopment"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2025","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=2025"}],"version-history":[{"count":0,"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2025\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=2025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=2025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=2025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}