WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
7213
Table margin fails to be included in parent div
https://bugs.webkit.org/show_bug.cgi?id=7213
Summary
Table margin fails to be included in parent div
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
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug