Closed Bug 182681 Opened 22 years ago Closed 21 years ago

[FIX]<select size="0"> draws an inappropriate control

Categories

(Camino Graveyard :: HTML Form Controls, defect, P3)

PowerPC
macOS

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mark, Assigned: bzbarsky)

Details

Attachments

(2 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.1) Gecko/20021104 Chimera/0.6
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.1) Gecko/20021128 Chimera/0.6+

With ambiguous but valid HTML <select size="0">, Chimera will draw what appears
to be an <input type="text">.  It functions as a drop-down menu of the type
created with <select size="1">, but no visual cues are present to inform the
user that it will function this way.  This can be viewed at
http://www.mentovai.com/tmp/chimera-bug-200211291315.html.  It was found in the
wild at http://www.nyc.gov/html/tlc/, under "TLC Rules."

This occurs with other improper values for the size parameter.

Reproducible: Always

Steps to Reproduce:
Use <select size="0">
Actual Results:  
Control that resembles <input type="text"> is displayed but it functions as a
<select size="1">

Expected Results:  
Chimera should have drawn the control as a <select size="1">

0.6+-2002112805/10.2.2
0.6-2002110415/10.2.2
Confirmed using Chimera/2002112604. See also bug 182476.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached file Testcase
Test url is dead. Attached testcase.
Attached patch patch (obsolete) — Splinter Review
Here are the <select> changes that were in my patch for bug 197094 that fix
this bug.
Attachment #120030 - Flags: review?(bryner)
It seems like the select[multiple] portion of this should be in forms.css since
that bug would affect all platforms.  Also, the fix for size=0 should be
mirrored in forms.css.  (this is what we want to do, right jkeiser/bz ?)
Yeah, we should probably mirror this in forms.css.... (Assuming that it doesn't
crash and burn on Windows, of course, which I can't test.  And -moz-appearance
does not seem to do anything for Linux form controls, yet.)
Comment on attachment 120030 [details] [diff] [review]
patch

minusing to get this out of my review queue, since we decided part of this
should be in forms.css.
Attachment #120030 - Flags: review?(bryner) → review-
Agreed, size="0" part of the fix should be in layout/html/document/src/forms.css.
still present in 2003082402.
Attachment #120030 - Attachment is obsolete: true
Comment on attachment 132121 [details] [diff] [review]
patch taking comments into account

Reviews?  I optimized for maintainability, but we could move a copy of the
"size" rule with "multiple" after the 'size=1' rule...
Attachment #132121 - Flags: superreview?(dbaron)
Attachment #132121 - Flags: review?(bryner)
Taking.
Assignee: bryner → bzbarsky
Priority: -- → P3
Summary: <select size="0"> draws an inappropriate control → [FIX]<select size="0"> draws an inappropriate control
Comment on attachment 132121 [details] [diff] [review]
patch taking comments into account

Looks ok to me.
Attachment #132121 - Flags: review?(bryner) → review+
Comment on attachment 132121 [details] [diff] [review]
patch taking comments into account

Do I want to know why this is copied into a mac-specific file?
Attachment #132121 - Flags: superreview?(dbaron) → superreview+
It's copied because said file includes some mac-specific rules (eg setting the
transparent background....)

Patch checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: