Open Bug 430360 Opened 17 years ago Updated 3 years ago

CSS background-color is 1px too low

Categories

(Core :: Web Painting, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: nightstalkerz, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008042207 Minefield/3.0pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008042207 Minefield/3.0pre If a div has a child element such as <a> and the background-color is set for the div and <a>, the background color will not appear on the top line of <a> leaving the colour of the div. This works in Opera 9.5 and IE7. Reproducible: Always Steps to Reproduce: 1. Save the text below as a html document and open in Firefox. Actual Results: background-color is 1px too short. Expected Results: background-color is higher 1px. Save this as an html document. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> Contact </title> <style type="text/css"> #menu { background-color: black; text-align: center; font-size: x-large; } #menu a { background-color: yellow; } </style> </head> <body> <div id="menu"> <a href="Default">Home</a> <a href="Contact">Contact</a> <a href="About">About</a> </div> </body> </html>
Attached file testcase
There is a line above the 3 links which should be the same as the links background colour.
I can confirm I see the behavior. I believe this bug belongs in Product: core with the Component being Layout: (view rendering?)
Component: General → Layout: View Rendering
Product: Firefox → Core
QA Contact: general → layout.view-rendering
I haven't looked at this myself, but confirming on the basis of Ryan's comment so this gets some attention.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Component: Layout: View Rendering → Layout: Web Painting
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: