Closed Bug 298683 Opened 20 years ago Closed 12 years ago

rendering problem with margin-bottom in combination with line-height in percent

Categories

(Core :: Layout, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: s.stock, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

In the attached html file are five <div> elements one below the other. 
I used some stylesheet for formatting: margin-bottom= 1px, font-size= 11 px,
some padding and a background color. This works fine. But when I add a
line-height with a value in percent the third <div> element is displayed with a
margin-bottom of 2 px.

Reproducible: Always

Steps to Reproduce:
1.View the attached file in firefox 1.4
2.
3.

Actual Results:  
the third <div> element is displayed with a margin-bottom of 2 px

Expected Results:  
the third <div> element should be displayed with a margin-bottom of 1 px
Attached file html file as example
observed bug in Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511
Firefox/1.0.4

but:

wfm with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2)
Gecko/20050618 Firefox/1.0+ 
and
wfm with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050618
Firefox/1.0+
Still see this bug in Fx 1.0.6
Something like this happen when IMG tag is included into styled DIV, but only on
odd IMG heights
Status: UNCONFIRMED → NEW
Ever confirmed: true
Status: NEW → RESOLVED
Closed: 12 years ago
Component: General → Layout
Product: Firefox → Core
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: