Opened 13 years ago

Closed 13 years ago

#1911 closed defect (invalid)

Inconsistent getMarginBox , setContentBox, etc... behavior across browsers!

Reported by: Jonathan Bond-Caron Owned by: Bryan Forbes
Priority: high Milestone:
Component: HTML Version: 0.4
Keywords: Cc:
Blocked By: Blocking:

Description

I've only tested getMarginBox, getBorderBox & setContentBox.

But these core functions return different values across Firefox, Opera & IE 6.0 I'll attach a test case...

This likely affects Safari as well... Browsers do their best with standards but the toolkit should fix these problems.. I'd be happy to do some research and submit a patch but I need to know if that has been addressed before?

j

Attachments (1)

TestGetMarginBox.html (1.1 KB) - added by Jonathan Bond-Caron 13 years ago.

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by Jonathan Bond-Caron

Attachment: TestGetMarginBox.html added

comment:1 Changed 13 years ago by bill

Resolution: invalid
Status: newclosed

The boxes (divs) you are testing have different sizes on IE and FF. That's why the functions return different values.

See http://www.quirksmode.org/css/quirksmode.html and http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnie60/html/cssenhancements.asp for detailed explanation of how "width" and "height" CSS properties mean different things depending on the browser and browser settings.

Note: See TracTickets for help on using tickets.