Bug 7213
Summary: | Table margin fails to be included in parent div | ||
---|---|---|---|
Product: | WebKit | Reporter: | Scott MacVicar <smacvicar> |
Component: | CSS | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Dave Hyatt
Yeah, definitely see no reason why that space should be there from looking at the source.
Scott MacVicar
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
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.