Closed Bug 966 Opened 26 years ago Closed 26 years ago

border: none creates a 5 pixel border

Categories

(Core :: CSS Parsing and Computation, defect, P2)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: kipp, Assigned: peterl-retired)

Details

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>
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → REOPENED
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.
Ok. I see the problem now... and... fixed!
Status: REOPENED → RESOLVED
Closed: 26 years ago26 years ago
Resolution: WORKSFORME → FIXED
Status: RESOLVED → VERIFIED
Using 11/30 devprev build, verified bug fixed.
You need to log in before you can comment on or make changes to this bug.