[Webkit-unassigned] [Bug 19094] New: offsetTop is wrong in cell <td>
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 15 17:08:24 PDT 2008
http://bugs.webkit.org/show_bug.cgi?id=19094
Summary: offsetTop is wrong in cell <td>
Product: WebKit
Version: 526+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Major
Priority: P1
Component: Layout and Rendering
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: jsgoupil at gmail.com
When you have a cell that specifies its height, the offsetTop will be based on
where the text will be written. It should be based where the TD starts. The
workaround is to set the vertical-align: top to the TD.
We tried with the latest version of Safari3.1.1(527.17) on Windows2003 and the
night build on MAC.
This is the HTML
<html>
<head>
<script type="text/javascript">
function loaded() {
alert("Offset of the TD: " +
document.getElementById("thetd").offsetLeft + "X" +
document.getElementById("thetd").offsetTop);
}
</script>
</head>
<body onload="loaded()" id="body">
<table style="background-color: orange;"><tr style="background-color:
blue;"><td id="thetd" style="/*vertical-align:top;*/width: 100px; height:
500px;background-color: red"></td></tr></table>
</body>
</html>
--
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