Closed Bug 397156 Opened 17 years ago Closed 15 years ago

hidden form input fields are visible when inputs are set to display: block and padding is added to inputs

Categories

(Firefox :: General, defect)

2.0 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 436046

People

(Reporter: steven.bakh, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070801 Firefox/2.0.0.6
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070801 Firefox/2.0.0.6

Setting display: block on form input elements makes hidden inputs visible. Having set a background colour on the form, the hidden field was made visible, only because of padding added to the input elements. Padding or not, the element should not be visible. It should not be rendered at all.

Reproducible: Always

Steps to Reproduce:
1. Create form with at least 1 hidden input
2. Set padding and display: block to form inputs
3. Set a background colour, other than white, for the form.
Actual Results:  
You will see a white line where the padding has been added to the hidden input.

Expected Results:  
There should be no sign of hidden input elements.
Attached file HTML test case
Version: unspecified → 2.0 Branch
Yes, I can reprocedure this bug in Firefox 3.0. Here my user-agent:
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9) Gecko/2008052906 Firefox/3.0

I signup here to request this bug, but Steven was faster :)
BTW, my workaround now is a CSS-Style in the input-tag: style="display:none;".

cu,
Jens
you can use this workaround for now:

input[type=hidden]
{
    display: none !important;
}

..dont like inline-styles ;)
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: