[Webkit-unassigned] [Bug 15897] New: please implement getBoundingClientRect and getClientRects

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 8 05:44:31 PST 2007


           Summary: please implement getBoundingClientRect and
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Enhancement
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: marcus at better.se

The getBoundingClientRect method on HTMLElement is a reasonably clean way to
find the position of an element. It was originally implemented in Internet
Explorer [1] and has now been added to Gecko [2, 3]. Also its companion
function getClientRects [4] could be useful.

The only option currently is an error prone summation along the offsetParent
chain, followed by another one up the DOM tree to add in scrolling. This is
very error-prone. Having a way to find element positions is absolutely
necessary for rich web applications.

Since the request to add getBoxObjectFor (bug #8154) was rejected, please
consider implementing this instead.

[2] https://bugzilla.mozilla.org/show_bug.cgi?id=174397
[3] http://developer.mozilla.org/en/docs/DOM:element.getBoundingClientRect

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