RESOLVED INVALID24097
Regression : a fixed element has no parent offset
https://bugs.webkit.org/show_bug.cgi?id=24097
Summary Regression : a fixed element has no parent offset
Frank DENIS
Reported 2009-02-23 09:19:09 PST
With recent nightly builds, elements having position:fixed have a null offsetParent property. The following snippet should return the body node : <!doctype html> <html> <body onload="alert(document.getElementById('hop').offsetParent);"> <div id="hop" style="position:fixed">Test</div> </body> </html>
Attachments
Anthony Ricaud
Comment 1 2009-02-23 13:40:02 PST
This bug depends on bug 19149 . One of them is invalid.
Matt Pennig
Comment 2 2009-02-23 14:40:45 PST
According to W3C specs[1], this is correct behavior. This is actually a progression, not a regression, if the spec is treated as canon. [1] http://www.w3.org/TR/cssom-view/#offset-attributes
Note You need to log in before you can comment on or make changes to this bug.