WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 5468
11785
:last-child clobbers bottom margin
https://bugs.webkit.org/show_bug.cgi?id=11785
Summary
:last-child clobbers bottom margin
Gabe da Silveira
Reported
2006-12-08 12:20:34 PST
If a block has a last-child selector with a bottom margin, the block's own bottom margin will not be considered for the collapsing margins even if it is larger than any of the other candidate margins. Note that this behaviour is not always apparent and can be corrected by changing the font size.
Attachments
HTML/CSS test case
(631 bytes, text/html)
2006-12-08 12:40 PST
,
Gabe da Silveira
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Gabe da Silveira
Comment 1
2006-12-08 12:40:20 PST
Created
attachment 11776
[details]
HTML/CSS test case
mitz
Comment 2
2006-12-08 12:53:32 PST
:last-child is seriously broken in WebKit, and in fact matches all children, as one can see by adding 'background: red;' to the .bar:last-child rule in the test case at
http://darwinweb.net/content/safari-last-child-margin-bug.html
*** This bug has been marked as a duplicate of
5468
***
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