[Webkit-unassigned] [Bug 19149] New: A position fixed node's offsetParent should return null

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 20 12:11:22 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=19149

           Summary: A position fixed node's offsetParent should return null
           Product: WebKit
           Version: 525.x (Safari 3.1)
          Platform: PC
               URL: http://www.gtalbot.org/BrowserBugsSection/MSIE8Bugs/CSSO
                    M-offsetParent-prop.html#ThirdTest
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: browserbugs at gtalbot.org


CSSOM View Module, offsetParent attribute clearly states that 
offsetParent of nodeA when nodeA is a position: fixed element should return
null.

"
If any of the following holds true return null and stop this algorithm:
(...)
    The computed value of the position property for element A is fixed. 
"
http://www.w3.org/TR/cssom-view/#offset-attributes

Steps to reproduce:
1- Load provided URL
2- Click the [return document.getElementById("PositionFixedElem").offsetParent]
button

Actual results in Safari 3.1.1 build 525.17.0 under XP Pro SP3:
document.getElementById("PositionFixedElem").offsetParent = [object
HTMLBodyElement]

Expected results:
document.getElementById("PositionFixedElem").offsetParent = null

Notes:
- Internet Explorer 7, Internet Explorer 8 beta 1 and Opera 9.50 will return
null.
- I have filed a similar bug at
https://bugzilla.mozilla.org/show_bug.cgi?id=434678

I have searched for a duplicate and did not find one. 
I have not checked the testcase with a webkit trunk nightly build (526+).


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list