Closed Bug 287233 Opened 20 years ago Closed 20 years ago

Combination of line-height and background-color can make border disappear

Categories

(Core :: Layout: Block and Inline, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 176237

People

(Reporter: asmodai, Unassigned)

Details

Attachments

(3 files, 2 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1

Given certain values of line-height in combination with a background-color can
cause a border-bottom to disappear.

Reproducible: Always

Steps to Reproduce:
1. Load the attached files.
2.
3.

Actual Results:  
The bottom border line disappears.  If one disabled the background-color of the
footer div the bottom border of the container div will be drawn.

Expected Results:  
Draw the outermost bottom border regardless of the line-height value.  

If you use, for example, 150% or 140% it will drawn it.  If the list items are
increased from 2 to 8 and the line-height is set to 130%, 160% or 180% it will
also drop the container div's border-bottom.

Opera 7.54 and 8 beta 3, Internet Explorer 6.0.2900.2180 all draw it as it should.
Netscape 7.2, Firefox 1.0.1 and the latest nightlies, Mozilla 1.8b all exhibit
this problem.

No Safari or Konqueror near to test.
Attached file testcase stylesheet (obsolete) —
Attached file testcase HTML (obsolete) —
I am suspecting some rounding/math problem in the source given the correlation
between number of items and certain values of line-height.
Attached image Firefox 1.0.1 rendering
Attached image Opera 8 rendering
Opera 7.54 renders the same.
Attachment #178245 - Attachment is obsolete: true
Attachment #178246 - Attachment is obsolete: true
Whiteboard: DUPEME

*** This bug has been marked as a duplicate of 176237 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: