WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
4125
getComputedStyle returns null when called on an element which has display: none set
https://bugs.webkit.org/show_bug.cgi?id=4125
Summary
getComputedStyle returns null when called on an element which has display: no...
Thomas Fuchs
Reported
2005-07-25 03:40:53 PDT
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.
Attachments
Test case showing the null return
(702 bytes, application/xhtml+xml)
2005-07-25 03:44 PDT
,
Thomas Fuchs
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Thomas Fuchs
Comment 1
2005-07-25 03:44:22 PDT
Created
attachment 3079
[details]
Test case showing the null return
David Kilzer (:ddkilzer)
Comment 2
2006-05-25 11:43:54 PDT
Reassigning bug to default assignee to make it more visible. (I don't believe Dave is working on this.)
Vladimir Olexa (vladinecko)
Comment 3
2006-10-11 15:54:47 PDT
this seems to be working/fixed now. (using r. 16732)
mitz
Comment 4
2007-01-23 11:51:56 PST
***
Bug 12384
has been marked as a duplicate of this bug. ***
mitz
Comment 5
2007-01-23 11:53:53 PST
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.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug