border: none creates a 5 pixel border

VERIFIED FIXED

Status

()

Core
CSS Parsing and Computation
P2
normal
VERIFIED FIXED
20 years ago
19 years ago

People

(Reporter: kipp, Assigned: Peter Linss)

Tracking

Trunk
x86
Windows NT
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

20 years ago
Try this html and you will see a 5 pixel border...

<HTML>
  <STYLE>
    BODY {
      color: black;
      background: white;
      margin: 2em;
    }
    DIV {
      border: none;
      padding: 0;
      margin: 0;
    }
    DIV.outside {
      color: white;
      background-image: url(ruler.gif);
      border: 2px solid black;
    }
    DIV.one {
      background: khaki;
    }
    DIV.two {
      background: transparent;
    }
    DIV P {
      margin: 50px;
      background-image: transparent;
    }
  </STYLE>
  <BODY>
    <DIV CLASS=outside>
      <DIV CLASS=one>
        <P>Paragraph inside DIV.one</P>
      </DIV>
      <DIV CLASS=two>
        <P>Paragraph inside DIV.two</P>
      </DIV>
    </DIV>
  </BODY>
</HTML>
(Assignee)

Updated

20 years ago
Status: NEW → RESOLVED
Last Resolved: 20 years ago
Resolution: --- → WORKSFORME
(Reporter)

Updated

20 years ago
Status: RESOLVED → REOPENED
(Reporter)

Comment 1

20 years ago
It's busted. border: none should result in a computed border width of zero and
hence no border area should be present around all but the outer DIV. Therefore
the inner margins should collapse.
(Assignee)

Comment 2

20 years ago
Ok. I see the problem now... and... fixed!
Status: REOPENED → RESOLVED
Last Resolved: 20 years ago20 years ago
Resolution: WORKSFORME → FIXED

Updated

19 years ago
Status: RESOLVED → VERIFIED

Comment 3

19 years ago
Using 11/30 devprev build, verified bug fixed.
You need to log in before you can comment on or make changes to this bug.