Clicking on a cell's padding causes floats with the cell to be selected

RESOLVED WORKSFORME

Status

()

Core
Layout: Floats
--
minor
RESOLVED WORKSFORME
8 years ago
6 years ago

People

(Reporter: Brad Beattie, Unassigned)

Tracking

1.9.1 Branch
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

8 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090910 Ubuntu/9.04 (jaunty) Shiretoko/3.5.3
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090910 Ubuntu/9.04 (jaunty) Shiretoko/3.5.3

<html>
        <head>
                <style type="text/css">
                        table { width: 100%; border: 1px solid black; margin-bottom: 2em; }
                        td { padding: 2em; }
                        .placeholder { clear: both; float: right; border: 1px solid red; }
                </style>
        </head>
        <body>
                <p>
                        Clicking on the cell's padding causes everything within the cell to be selected.
                </p>
                <table>
                        <tbody>
                                <tr>
                                        <td>
                                                <div class="placeholder">
                                                        Placeholder #1
                                                </div>
                                        </td>
                                </tr>
                        </tbody>
                </table>
                <p>
                        This is the same code, but with a single &amp;nbsp.
                </p>
                <table>
                        <tbody>
                                <tr>
                                        <td>&nbsp;
                                                <div class="placeholder">
                                                        Placeholder #2
                                                </div>
                                        </td>
                                </tr>
                        </tbody>
                </table>
        </body>
</html>

Reproducible: Always

Steps to Reproduce:
1. Load the HTML posted in the details.
2. Click on the cell padding above placeholder 1.
Actual Results:  
Placeholder 1 is selected.

Expected Results:  
Placeholder 1 is not selected.

Note that doing the same with placeholder 2 produces the expected results. The &nbsp; alters the outcome.
Created attachment 404233 [details]
reporter's testcase
I see this indeed with Firefox 3.5 on Windows, but it seems fixed on trunk. Can you retest? http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/
Version: unspecified → 1.9.1 Branch

Comment 3

6 years ago
WFM in Firefox 11 / trunk.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.