Open
Bug 430360
Opened 16 years ago
Updated 2 years ago
CSS background-color is 1px too low
Categories
(Core :: Web Painting, defect)
Tracking
()
NEW
People
(Reporter: nightstalkerz, Unassigned)
Details
Attachments
(1 file)
548 bytes,
text/html
|
Details |
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•16 years ago
|
||
There is a line above the 3 links which should be the same as the links background colour.
Comment 2•16 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•16 years ago
|
Component: General → Layout: View Rendering
Product: Firefox → Core
Updated•16 years ago
|
QA Contact: general → layout.view-rendering
Comment 3•16 years ago
|
||
I haven't looked at this myself, but confirming on the basis of Ryan's comment so this gets some attention.
Updated•16 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Updated•6 years ago
|
Component: Layout: View Rendering → Layout: Web Painting
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•