Bug 7213

Summary: Table margin fails to be included in parent div
Product: WebKit Reporter: Scott MacVicar <smacvicar>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: bfulgham, ian
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
URL: http://public.scott.dev.vbulletin.com/safari/margin.html

Scott MacVicar
Reported 2006-02-12 06:43:29 PST
Recently did some testing and this rendering error appeared in both Opera and WebKit, but failed to do with IE, Gecko and Amaya. After reading the spec regarding the box model I am pretty sure this is a bug. The problem is the background colour for body is shown instead of the parent element, after further investigation it appears that the margin is added for the table but not taken into account with the surrounding div. http://www.w3.org/TR/REC-CSS2/box.html is the document I was reading regarding margins.
Attachments
Dave Hyatt
Comment 1 2006-02-12 14:17:55 PST
Yeah, definitely see no reason why that space should be there from looking at the source.
Scott MacVicar
Comment 2 2006-02-20 09:21:51 PST
I've been told this is the CSS 2.1 Spec regarding collapsing margins after talking it over with someone more enlightened, though I'm insure. http://www.w3.org/TR/CSS21/box.html#collapsing-margins
Brent Fulgham
Comment 3 2022-07-06 13:40:29 PDT
The referenced URL is inaccessible, and the spec links are very out of date. We are tracking modern WPT tests in this space, and should focus on those results.
Note You need to log in before you can comment on or make changes to this bug.