Closed Bug 411456 Opened 17 years ago Closed 17 years ago

Percent width doesn't work with a -moz-inline-box parent.

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 394078

People

(Reporter: yliang, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11

If a element has a -moz-inline-box parent, the percent width will not work for this element.

Reproducible: Always

Steps to Reproduce:
<div style=" display:-moz-inline-box; width: 2in; border: solid black;">
	<div style=" width: 50%; border: solid red;">
		test
	</div>
</div>
Actual Results:  
The child element has a minimum width.

Expected Results:  
The child element has the width 1in.

If I use "1in" instead of "50%" directly, it will work.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.