Closed Bug 85306 Opened 25 years ago Closed 24 years ago

use of label within th with text-align: right style doesn't render correctly

Categories

(Core :: Layout, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mozbugs, Assigned: karnaze)

References

()

Details

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.0; COM+ 1.0.2204) BuildID: 2001061104 In the page at http://balveda.dubh.org/mozilla/rightlabels/test.html, there is a table with two columns. The cells in the first column are <th> with the text- align: right style set. Two of these cells are using the <label> tag for accessibility, one isn't. The text in all three th cells ought to be lined up on the right edge (which they are in IE 6beta). In Mozilla, the text in the first <th> fails to display at all and the text in the second <th> spills into the textfield in the cell next to it. The <th> which isn't using <label> renders correctly. (basically the table is hopelessly unusable) Reproducible: Always Steps to Reproduce: 1. Browse the URL http://balveda.dubh.org/mozilla/rightlabels/test.html Actual Results: It didn't render properly Expected Results: It should render properly
see also bug 47149
Verified this with Linux, so marking OS:All Moving to "Layout" as all the other <label> problems(seem to be a lot) are assigned there. Apparently mozilla treats the <label> tag in a special way and causes many odd results.
Status: UNCONFIRMED → NEW
Component: DOM Style → Layout
Ever confirmed: true
OS: Windows 2000 → All
Reassigning to layout people...
Assignee: jst → karnaze
QA Contact: ian → petersen
This seems to affect any table cell, whether it's <th> or <td>, and seems to be related to the relative lengths of text in the cell with the <label> and the cell below it. All three forms are identical, as far as the markup goes, and depending on the amount of text the label is either (1) aligned incorrectly, overlapping the next cell; (2) invisible (see bug 82618); or (3) aligned correctly.
This should be fixed if we start treating label as a normal inline element. (Right? Is it possible to reproduce this with anything other than label? If it is, please reopen.) *** This bug has been marked as a duplicate of 47149 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
In the given URI the text in the first <th> still does not display and the text in the second and third cell spills on the text box.. The problem still exits In the attached test case it does not use the tag <th> to show the actual problem... Reopening
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
the problem still exits on build Id: 2001082403 trunk Platform : WIN2k
It works fine when I try it, having applied the patch for bug 47149. I'm downloading a nightly to see if I can verify.
Confirmed with 2001082508 nightly, the testcase I supplied in the URL above now works fine.
Status: REOPENED → RESOLVED
Closed: 25 years ago24 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: