Open Bug 597406 Opened 10 years ago Updated 10 years ago
can't select text from floating div
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:22.214.171.124) Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729; .NET4.0E) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:126.96.36.199) Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729; .NET4.0E) When you try to select text (using the mouse) from a div with style="float: left" under some circumstances, you can't. I'll attach a minimal test case. Reproducible: Always Steps to Reproduce: 1. Open either the given URL (get username/password from bugmenot) or the attached test case 2. Try to select text from either the table beginning "Number of Constituents" (no quotes) or the first or third paragraph of the test case by clicking the mouse and dragging. 3. Actual Results: Text is selected from the wrong area or not at all. Expected Results: Text is selected where you drag the mouse.
The relatively positioned div coming after the float ends up painting on top of the float (because it's positioned). You can see this if you put a background on the rel pos div.So when you're clicking, the click event hits the rel pos div, not the float.Webkit has the same behavior, for the same reason. See bug 102695 for more sordid details.
You need to log in before you can comment on or make changes to this bug.