Closed Bug 86811 Opened 23 years ago Closed 23 years ago

Label text overlaps input form element when in table cell

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: csherlock, Assigned: karnaze)

References

Details

(Whiteboard: [bae:20011030])

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.1) Gecko/20010607 BuildID: 2001060703 When in a table cell, any text that is enclosed between <label> tags overlaps the input form element in the cell next to it. Reproducible: Always Steps to Reproduce: Use the following HTML example: <html> <head> <title>Test page</title> </head> <body> <form action="/usr/bin/donothing.pl"> <table width="350"> <tr> <td align="right">Username:</td> <td><input type="text" name="user"></td> </tr> <tr> <td align="right"><label>Password:</label></td> <td><input type="password" name="pass"></td> </tr> </table> </form> </body> </html> Actual Results: I'm fairly certain the text in the label should not overlap the input form element in the next cell. Expected Results: Not entirely sure about this, either the label text shouldn't be displayed if it isn't valid HTML or it should be displayed correctly in the cell. If you put a standard <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> then it doesn't display the label text at all.
Not a DOM problem, over to Layout.
Assignee: jst → karnaze
Component: DOM HTML → Layout
QA Contact: stummala → petersen
I can confirm this on Linux 2001061821 nightly.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 98 → All
Hardware: PC → All
Changing QA contact
QA Contact: petersen → amar
*** Bug 87611 has been marked as a duplicate of this bug. ***
*** Bug 87266 has been marked as a duplicate of this bug. ***
Attached file Small version of the testcase. (deleted) —
Looks fine in trunk build 2001100903 on Win2k... might this have been a lost duplicate of bug 85306 ("use of label within th with text-align: right style doesn't render correctly")?
confirming the WFM, used trunk build from 20011030 on win98
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Whiteboard: [bae:20011030]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: