#1086 new
Viktor Kojouharov

Element#getOffsetParent returns a statically positioned element

Reported by Viktor Kojouharov | June 28th, 2010 @ 01:25 PM | in After 1.7

At least in Firefox 3.6, Element#getOffsetParent could return an element, which is statically positioned.

Specifically, getting the offset parent of a table cell descendant element returns the table cell 'td', since that is what the offsetParent of the descendant is set to. However, the 'td' is statically positioned, and should not be returned. This occurs if that element is statically positioned. If the element is relatively positioned for instance, it will return the correct ancestor. For this reason, Element#getOffsetParent() should skip offsetParent if it is statically positioned, and return the first ancestor with a real position.

Due to this, Element#positionedOffset returns incorrect offsets, which are based on a statically positioned table cells.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Attachments

Tags

Pages