Closed Bug 579231 Opened 14 years ago Closed 13 years ago

Left and right borders of a <DIV> tag containing a PNG-32 alpha image are rendered incorrectly.

Categories

(Firefox :: General, defect)

4.0 Branch
x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: joel.a.villarreal, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; Windows NT 6.1; en-US; rv:2.0b2pre) Gecko/20100714 Minefield/4.0b2pre
Build Identifier: Mozilla/5.0 (Windows; Windows NT 6.1; en-US; rv:2.0b2pre) Gecko/20100714 Minefield/4.0b2pre

A little white space appears above the top end of the left and right borders, creating an unexpected two-coloured border.

Reproducible: Always

Steps to Reproduce:
1. Attach the following CSS:

html, body
{
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
}

#layout
{
    width: 1000px;
    border-left: 12px solid red;
    border-right: 12px solid red;
    margin-left: auto;
    margin-right: auto;
}

2. Create an HTML file with a XHTML 1.0 Transitional DOCTYPE, and insert this into the <BODY> tag:

<div id="layout">
  <img src="myimage.png" width="1000" alt="" />
</div>
Actual Results:  
Border has 8px or so of white color, and the rest in red.

Expected Results:  
All the border line should be red.
Can you create a HTML testcase and attach it to this bug or provide a URL which exposes this problem?
Attached file HTML Testcase
Can't reproduce the bug with attatchment 457751. Is this problem new?

Note that 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
triggers "Almost Standards Mode" if served as text/html.

With a "Standards Mode" doctype like
<!DOCTYPE html>
I see a white space at the *bottom* end of the red borders.

This white space is just the lower baseline of the div's inline content.
Setting |display:block| to the image would fix that.
But why a white space and not just *blank space*?
Version: unspecified → 4.0 Branch
Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

As said in comment 3, can't reproduce with attachment 457751 [details].

Chancing to Standards Mode triggering <!DOCTYPE html>, I see a blank space as expected. This space has body's background-color, also as expected.

-> WFM. Reporter, if you see anything different, please explain and reopen.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: