Closed Bug 278439 Opened 20 years ago Closed 20 years ago

select in a div in a relatively positioned inline div doesn't work

Categories

(Core :: Layout, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 242661

People

(Reporter: zaphod94, Unassigned)

Details

Attachments

(1 file)

view this html in firefox and click the arrow. Options do not display. Chaning
the display property of the div to table-cell fixes the problem. This issue is
not reproducible on a Mac OSX

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Mozilla DD Test</title>
<style type="text/css">

	div {
		position:relative;
		left:0;
		top:0;
		margin:0;
		padding:0;
		border:0pt solid black;
	}
	
</style>
</head>
<body>
<form>

<div id="phDiv" style="display:inline;">
	<div>
		<select name="name1" id="id1" style="width:115px;">
			<option value="1">Option 1</option>
			<option selected="selected" value="2">Option 2</option>
		</select>
	</div>
</div>
</form>
</body>
</html>
Verified on Windows XP SP2 Home with Firefox 1.0.
Be a simplist, here is a smaller version of the testcase that reproduces the bug:

<html>
<head>
<style>
	div {position:relative;	}
</style>
</head>
<body>
<div style="display:inline;">
	<div>
		<select name="name1">
			<option>Option 1</option>
			<option>Option 2</option>
		</select>
	<div>
</div>
</body>
</html>
Attached file testcase
Be generous to the next person by, upload a testcase rather than inlining HTML
in a comment.
Assignee: firefox → parser
Component: General → HTML: Parser
Product: Firefox → Core
QA Contact: general → mrbkap
Summary: Clicking the arrow to display the options for the dropdown does not list the options when DD is enclosed in a div with display =inline → select in a div in a relatively positioned inline div doesn't work
Version: 1.0 Branch → Trunk
The content model looks right for this testcase, I'm moving this over to layout
for more triaging (is this valid?).
Component: HTML: Parser → Layout
Assignee: parser → nobody
QA Contact: mrbkap → layout

*** This bug has been marked as a duplicate of 242661 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 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: