getComputedStyle returns null when called on an element which has display: none set. <style> #x { display:none; } </style> <div id="x">test</div> document.defaultView.getComputedStyle(document.getElementById('x'), null) returns null (but should return the computed CSS styles object). This works when display:none; is removed. Note that this works all ok in Gecko-based browsers.
Created attachment 3079 [details] Test case showing the null return
Reassigning bug to default assignee to make it more visible. (I don't believe Dave is working on this.)
this seems to be working/fixed now. (using r. 16732)
*** Bug 12384 has been marked as a duplicate of this bug. ***
Oops, bug 12384 is not a duplicate of this bug. This bug seems to be fixed in that a style declaration is returned, however all its properties are null, which bug 12384 is about.