Closed Bug 520032 Opened 15 years ago Closed 12 years ago

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

Categories

(Core :: Layout: Floats, defect)

1.9.1 Branch
x86_64
Linux
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: bradbeattie, Unassigned)

Details

Attachments

(1 file)

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.
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
WFM in Firefox 11 / trunk.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: