Bug 4339
Summary: | Safari: onclick not respecting td height | ||
---|---|---|---|
Product: | WebKit | Reporter: | Will McCullough <will.mccullough> |
Component: | Layout and Rendering | Assignee: | Dave Hyatt <hyatt> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | 420+ | ||
Hardware: | Mac | ||
OS: | OS X 10.4 |
Will McCullough
When using td height with an onclick in the td, the area of the click is not respecting the height. It will
respect only the area wih content. Example below:
// example 1
<table cellspacing="2" cellpadding="1" border="0" width="590">
<tr>
<td height="300" align="center" valign="top" background="http://
static.highend3d.com/dvdstoreimages/1/epick.jpg" onclick="location.href='link';"
style="cursor:pointer;" title="test of a forum">
<div style="color: white;">doesnt work</div>
</td>
</tr>
</table>
// example 2
<table cellspacing="2" cellpadding="1" border="0" width="590">
<tr>
<td style="height: 300px;" align="center" valign="top" background="http://
static.highend3d.com/dvdstoreimages/1/epick.jpg" onclick="location.href='link';"
style="cursor:pointer;" title="test of a forum">
<div style="color: white;">doesnt work</div>
</td>
</tr>
</table>
// the hack used to force the td to height 300
<table cellspacing="2" cellpadding="1" border="0" width="590">
<tr>
<td height="300" align="center" valign="top" background="http://
static.highend3d.com/dvdstoreimages/1/epick.jpg" onclick="location.href='link';"
style="cursor:pointer;" title="test of a forum">
<div style="height: 300px;"><div style="color: white;">This works</div></
div>
</td>
</tr>
</table>
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Frido Ferdinand
this is probably the same as #3662 ?
Dave Hyatt
*** This bug has been marked as a duplicate of 3662 ***