Closed Bug 131335 Opened 23 years ago Closed 21 years ago

text-align center makes fieldset misaligned and form controls invisible

Categories

(Core :: Layout: Form Controls, defect)

x86
Windows 2000
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: nik, Assigned: rods)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9) Gecko/20020311 BuildID: 2002031104 See the source for the testcase - when inside a CSS centered fieldset (fieldset is a child of a div with text-align : center), form controls are missing or misaligned. The fieldset stays on the left while the form controls tend towards the center. As soon as the form controls are completely clear of the fieldset, they are no longer rendered, although it is still possible to enter text and the text is drawn properly. To see the effect, load the testcase url and resize mozilla horizontally. Reproducible: Always Steps to Reproduce: 1. Put form controls in a fieldset 2. Put the fieldset in a centered block level element Actual Results: fieldset remains at left margin, form controls are centered, but not drawn if they fall outside the misaligned fieldset. Expected Results: Fieldset should contain the form controls, and be centered within the viewport. If you set the container element to be <div align="center"> rather than centered by CSS methods, then the fieldset becomes centered but the form controls are right-aligned - essentially, the same as the described bug but in reverse: fieldset stays centered not the form controls, and the form controls stick to the margin not the fieldset, and the right margin at that, not the left.
possible dupe of bug 119849?
No, possibly related but not the same bug. I am not seeing the controls at all in this one. Weird.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → Future
In case I'm tempted to b0rk it again.
Also fails in Linux Gecko/20020314
Keywords: testcase
QA Contact: madhur → tpreston
dupe of 127516?
The attached testcase seems to work for me (linux build 2002-10-25-08).... is there still a problem?
rv:1.2.1 Gecko/20021130 Win2K now works for me. Perhaps this should be resolved.
Resolving worksforme, since it does.
Status: NEW → RESOLVED
Closed: 21 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: