Closed Bug 302379 Opened 19 years ago Closed 16 years ago

Options in select box truncated when selected

Categories

(Core :: Layout, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: drew, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

On the above URL, you'll find a select box.  It contains two options, but the
second option, when selected, shows up as a blank box.

Reproducible: Always

Steps to Reproduce:
1. Go to http://www.zitnay.com/stuff/ffbug.html.
2. Open up the select box.
3. Select the second option ("short string").
Actual Results:  
The select box goes blank.

Expected Results:  
"short string" should have shown up in the select box.

In case my server is somehow down, here is the complete source code of
http://www.zitnay.com/stuff/ffbug.html:

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title></title>
</head>

<body>
<table width="400">
<tr> 
<td> 
<font><b>
long string long string long string long string long string long string long
string long string
<select>
<option value="a">long string long string long string long string</option>
<option value="b">short string</option>

</select>
</b></font>
</td>
</tr>
</table>
</body>
</html>
With the 1.0.x branch, I see the described problem
But with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b4)
Gecko/20050727 Firefox/1.0+ ID:2005072710 things work as expected.
Reporter, can you please try with Deer Park Alpha 2 (Firefox 1.5 alpha 2) and
verify that this problem is indeed fixed for you? Thanks!
Hmm, in SeaMonkey 2005072511 om Mac OS 10.3.9 I see "long" when selecting the
first option and "short" when selecting the second.
Component: General → Layout
Keywords: testcase
Product: Firefox → Core
QA Contact: general → layout
Version: unspecified → Trunk
I just tried in Deer Park Alpha 2 (Mozilla/5.0 (Windows; U; Windows NT 5.0; en-
US; rv:1.8b3) Gecko/20050712 Firefox/1.0+), and the problem has changed.  
Indeed, I'm seeing the same thing Stefan saw; "long" when the first option is 
selected and "short" when the second option is selected.  Thus, both options 
are now truncated when displayed in the select box after being selected.

Drew
Summary: Second option in select box shows up as blank when selected → Options in select box truncated when selected
Component: Layout → Build Config
Product: Core → Firefox
Version: Trunk → 1.0 Branch
Product: Firefox → Core
This doesn't occur when you remove the <font> tags from around the <select>
element.
Component: Build Config → Layout
Version: 1.0 Branch → Trunk
Mats, any idea what's up here?
This appears to have been fixed at some point (working on FF 3.0.5 Win32 at least).

Drew
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
No bug or patch identified as the code fix.
Resolution: FIXED → WORKSFORME
Fixed in the range: 2006-12-07-04 -- 2006-12-08-04,  most likely by the
reflow branch landing.

Pushed a reftest:
http://hg.mozilla.org/mozilla-central/rev/3c50ac825b3c
Flags: in-testsuite+
OS: Windows 2000 → All
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: