CSS background-color is 1px too low

RESOLVED INACTIVE

Status

()

Core
Layout: View Rendering
RESOLVED INACTIVE
10 years ago
3 days ago

People

(Reporter: nightstalkerz, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

10 years ago
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>
(Reporter)

Comment 1

10 years ago
Created attachment 317124 [details]
testcase

There is a line above the 3 links which should be the same as the links background colour.

Comment 2

10 years ago
I can confirm I see the behavior. I believe this bug belongs in Product: core  with the Component being Layout: (view rendering?)
(Reporter)

Updated

10 years ago
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

Comment 4

3 days ago
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Last Resolved: 3 days ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.