[Webkit-unassigned] [Bug 24305] New: offsetLeft and offsetTop wrong when position of parent node is not static

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 2 16:06:07 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=24305

           Summary: offsetLeft and offsetTop wrong when position of parent
                    node is not static
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: boris at highscore.de


offsetLeft and offsetTop do not include the border width of the parent node if
the style property 'position' of the parent is not 'static'. In the test case
the style property 'position' is changed from 'static' to 'relative'. This
change makes Safari (and Firefox and Chrome) return different offsetLeft and
offsetTop values. If you add the border width of 15px to those values you get
the correct results again. If you open the test case in Internet Explorer and
Opera you'll see that they return the same values no matter what 'position' is
set to.


-- 
Configure bugmail: https://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