Closed
Bug 100801
Opened 23 years ago
Closed 23 years ago
label {display:block} causes severe layout problems
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
People
(Reporter: bugzilla, Assigned: rods)
References
Details
Attachments
(3 files)
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4+)
Gecko/20010919
BuildID: 2001091903
Setting display:block on a <label> element causes severe layout problems:
1) When inside a table cell, the cell grows extremely wide and the label disappears.
2) When not inside a table cell, all surrounding content is not displayed.
This has been occurring since the fix for bug 47149. It is related to bug 96813
(which I can't reproduce).
This is causing big problems with pages that used display:block on <label>
elements as a workaround for bug 47149. As a stopgap measure, "label
{display:inline !important}" should be added to html.css to prevent the display
property from being set, until the label element is properly fixed.
Testcases are attached below.
Reporter | ||
Comment 1•23 years ago
|
||
Reporter | ||
Comment 2•23 years ago
|
||
Reporter | ||
Comment 3•23 years ago
|
||
As I am not currently set up to create patches, could someone please do me a
huge favor and create a patch to add the following:
label {
/* our <label> support is badly broken. (b=100801) */
display: inline !important;
}
to forms.css under "miscellaneous form elements".
Adding this declaration fixes both testcases as well as all pages I had noticed
as broken. It's a stopgap measure and won't be sufficient to fix our <label>
support, but it will make the effects less extreme.
Comment 4•23 years ago
|
||
Comment 5•23 years ago
|
||
Comment on attachment 51570 [details] [diff] [review]
patch: force label elements to be inlines
(typo in desc.)
sr=attinasi
Attachment #51570 -
Attachment description: patch: formce label elements to be inlines → patch: force label elements to be inlines
Attachment #51570 -
Flags: review+
Comment 6•23 years ago
|
||
reassign to rods - Rod, please review the patch and, if acceptable, check in to
trunk. Jason did all the work, I just created the patch and sr'd it.
Assignee: attinasi → rods
Assignee | ||
Comment 7•23 years ago
|
||
seems reasonable r=rods
Reporter | ||
Comment 8•23 years ago
|
||
Thanks very much Marc and Rod for getting the patch made and reviewed, I greatly
appreciate it. What needs to be done from here to get it checked in on the trunk?
Also, since this bug was present in the 0.9.4 branch, what are the chances of
getting this in on the Netscape commercial branch as well? From my standpoint
this looks like a low-risk/high-gain checkin, but it's obviously not my place to
decide that.
Reporter | ||
Comment 9•23 years ago
|
||
The workaround patch for this bug has r= and sr= but has not been checked in ...
can somebody get this pushed through please?
Comment 10•23 years ago
|
||
I just ping'd Rod - hopefully he will check this in very soon...
Comment 11•23 years ago
|
||
I'm seeing this problem with XML elements (i.e., not HTML) as well; have filed a
separate bug 107417 .
Comment 12•23 years ago
|
||
*** Bug 107763 has been marked as a duplicate of this bug. ***
Comment 13•23 years ago
|
||
NOte that that patch (which _was_ checked in) makes it difficult to change label
displays to "none" in js (you have to remember to add !important, which means
you can't use the shortcut methods in the DOM and have to use setPropertyValue).
Assignee | ||
Comment 14•23 years ago
|
||
fixed
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 15•23 years ago
|
||
*** Bug 136006 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•