Closed Bug 289865 Opened 19 years ago Closed 14 years ago

fixed width cell causes clickable region outside table

Categories

(Core :: Layout: Tables, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ceubanks, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2

The following HTML shows the problem
<html>

<body>

<table border="1" cellpadding="0" cellspacing="0"
style="width:600px;height:200px;background-color:blue;">
<tr>
<td style="width:200px;background-color:purple;">
</td>
<td style="width:400px;" valign="top">
<div id=outerDiv
style="width:100%;height:100%;position:relative;background-color:orange;">
<div style="top:0;width:200px;left:0;position:absolute;">
text text text<br>
text text text<br>
text text text<br>
text text text
</div>
<div style="top:0;width:200px;left:200px;position:absolute;">
more more more<br>
more more more
</div>
</div>
</td>
</tr>
</table>
<br>
Single clicking in the first 200 or so pixels to the right of the orange box
will select the text inside of the orange box.<p>
Adding "overflow:hidden;" to "outerDiv" div or removing the "position:absolute;"
styles will stop the behavior<p>
Varying to position of the entire table on the page affects the click area. For
example, adding lines above the table moves the
invisible click area below the top of the table.

</body>
</html>

Reproducible: Always

Steps to Reproduce:
1.Load included HTML
2.click to the right of the table


Actual Results:  
the text in the table cell is selected

Expected Results:  
no selection should occur
Attached file reporter's testcase
clicking to the right of the orange box selects text inside the box.

seen with Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b2) Gecko/20050329
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
Should probably depend on the bug on fixing event dispatch coords....
wfm?
> wfm?

Yes
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: