Closed Bug 356054 Opened 18 years ago Closed 18 years ago

hidden inputs with CSS style display:block and another visible attribute (such as border or height) are showing in the visible output

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 332841

People

(Reporter: yleviel, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061003 Firefox/2.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061003 Firefox/2.0 If you create an HTML page with the following style info the output is shown for hidden inputs as well as text inputs. HTML and CSS shown below: ---------------- <html> <head> <style> input { height: 16px; margin: 0; width: 95%; padding: 2px 0 0 5px; display: block; font-size: 11px; border: 1px solid #B9B9B9; font-family: Tahoma, Verdana, Arial; } </style> </head> <body> <input type="hidden" value="hello" /> <input type="text" value="world" /> </body> </html> Reproducible: Always Steps to Reproduce: 1. Create an HTML file 2. Add a text input with the value="hello" 3. Add a hidden input with the value="world" 4. Add a style tag or link to a CSS file that includes a style definition that states display:block for the input 5. Add other visual properties such as border: 1px solid #B9B9B9; and/or height:16px 6. View in FireFox RC2 Actual Results: The hidden inputs are shown with the value for the "value" attribute not showing. Expected Results: Hidden inputs should not be shown at all, under any condition. By removing the display:block; in the CSS, the bug does not appear.
*** This bug has been marked as a duplicate of 332841 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.