[Webkit-unassigned] [Bug 52535] offsetLeft is wrong for elements inside a TD whose style is set to position:relative
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 9 13:35:49 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=52535
Levi Weintraub <leviw at chromium.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |leviw at chromium.org
--- Comment #3 from Levi Weintraub <leviw at chromium.org> 2011-02-09 13:35:49 PST ---
(In reply to comment #2)
> I'm guessing that position:relative isn't valid for the TD element, so WebKit drops it on the floor? Since I need to check it's existence here to match FF/IE , any idea how I can tell that it's set?
I'm not sure how you can tell if it's set or not, but I can verify that it's dropped on the floor in CSSStyleSelector.cpp::asjustRenderStyle:
// After performing the display mutation, check table rows. We do not honor position:relative on
// table rows or cells. This has been established in CSS2.1 (and caused a crash in containingBlock()
// on some sites).
if ((style->display() == TABLE_HEADER_GROUP || style->display() == TABLE_ROW_GROUP ||
style->display() == TABLE_FOOTER_GROUP || style->display() == TABLE_ROW || style->display() == TABLE_CELL) &&
style->position() == RelativePosition)
style->setPosition(StaticPosition);
Perhaps we need a method to track whether we corrected away from the specified positioning in this case?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list