Bug 24097 - Regression : a fixed element has no parent offset
Summary: Regression : a fixed element has no parent offset
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://download.pureftpd.org/misc/bug...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-23 09:19 PST by Frank DENIS
Modified: 2009-02-23 14:59 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank DENIS 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>
Comment 1 Anthony Ricaud 2009-02-23 13:40:02 PST
This bug depends on bug 19149 . One of them is invalid.
Comment 2 Matt Pennig 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