Closed Bug 558275 Opened 14 years ago Closed 14 years ago

links cannot be clicked if there is another div block in the same line

Categories

(Core :: Layout: Floats, defect)

1.9.2 Branch
x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 102695

People

(Reporter: lasyard, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3

Try a page like this:
<html>

<body>
<div style="width:50%; float:left">
	<p><a href="Javascript:alert('Can click');">click me</a></p>
</div>
<div style="width:100%; float:right; margin-left:-50%"><div style="margin-left:50%">
	<p>A paragraph</p>
</div></div>
</body>

</html>
The link on the left cannot be touched at all. Obviously it is overlapped by the div block on the right side. I think as far as the link can be seen, it should be available to click.
There is really some web pages affected by this problem, such as http://lasy.mysmth.net, it is my blog.

Reproducible: Always

Steps to Reproduce:
1. Try the page I mentioned in details.
Actual Results:  
The "click me" link cannot be touched.

Expected Results:  
The "click me" link cannot be touched.

In IE8, it works.
Attached file a page for test
Floats don't adjust there size from each other. So your second div will follow your specification and be width 100% and lay ontop of your first float left div.

This follows the css specs.
fwiw, Opera 10.5: clickable, GChrome dev behaves same as Trunk: non-clickable.
Component: General → Layout: Floats
Keywords: testcase
Product: Firefox → Core
QA Contact: general → layout.floats
Version: unspecified → 1.9.2 Branch
Yeah, this page expressly overlaps the right float over the left one.  It only works in IE because it allows some transparent pixels (but not all!) to be transparent to events.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: