Closed Bug 134869 Opened 22 years ago Closed 22 years ago

Label elements set to float:left do not display

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: tom, Assigned: rods)

References

()

Details

(Keywords: access, css1, Whiteboard: [CSS1-5.5.25][HTML4-17.9.1])

Attachments

(1 file)

Gecko does not display label elements set to display:block and float:left or
float:right.

This means users could potentially be confronted by forms with no information on
what to input where.
This is almost certainly a duplicate of bug 96813 (from that bug: "the LABEL
element is always treated as an inline element.  It can't be styled using
'display: block' or 'float', or 'position', or if it can (I haven't tested
much), it would break the fact that it's a LABEL")
Status: UNCONFIRMED → NEW
Depends on: 96813
Ever confirmed: true
OS: Windows 98 → All
Hardware: PC → All
I wasn't sure if it was a duplicate or not. This is more about the label not 
displaying at all, rather than not being styled - much more major a bug.

If this bug is marked a dupe of bug 96813, then I suggest that bug's severity 
level gets changed to major.
->Form Controls
Assignee: attinasi → rods
Component: Layout → HTML Form Controls
QA Contact: petersen → madhur
Whiteboard: [CSS1-5.5.25][HTML4-17.9.1]
QA Contact: madhur → tpreston
Keywords: access, css1
Attached file testcase
This is a test case showing a failure I've encountered that wasn't fixed with
Bug#96813 that is definately related to this one. 

I've included three examples of how labels still are not being rendered
correctly. Three divs, each with a label and an input are shown. The goal is to
align the controls 205px from the left. 

The first absolutely positions the label.
The second floats the label on the left and displays the input as a block
The third uses display:compact which is not really related to this defect but
apparently should work. 

Adam
The testcase works correctly for me with 2002 062408 on Windows 2000.  All of
the labels appear and work, but the first one isn't in the correct place unless
I make the text smaller using text zoom.
This has been fixed for a while, cheers.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Mozilla does not support 'display: compact'.
I really hate that this bug is in NS 7.  Any guess on when a new release is
expected, that will hopefully include the fix?
Jay, anyone who knows is under NDA not to tell.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: