Closed
Bug 334865
Opened 19 years ago
Closed 19 years ago
input type="hidden" is affected by CSS styling
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 332841
People
(Reporter: necrotic, Unassigned)
References
()
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 8.51
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2
If you have a form with <input type="hidden" elements and a CSS style such as
input {
width: 85px;
border: 1px #cccccc solid;
display: block;
}
A border is added around the hidden field and it's width is set to the specified width. Hidden inputs should act as if they have visible: hidden.
Reproducible: Always
Steps to Reproduce:
1. Open a page with <input type="hidden"> somewhere.
2. Use the css input { width: 85px; border: 1px #cccccc solid; display: block; }
Actual Results:
Input is set to the width and has a border.
Expected Results:
Input should be invisible
Workaround is to add style='display: none' to input or use
input[type="hidden"] { display: none; }
Comment 1•19 years ago
|
||
Confirmed
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20060419 Firefox/2.0a1 ID:2006041922
Comment 2•19 years ago
|
||
*** This bug has been marked as a duplicate of 332841 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•