WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
193346
[LFC][BFC][MarginCollapsing] Adjust vertical position when box margin collapses through.
https://bugs.webkit.org/show_bug.cgi?id=193346
Summary
[LFC][BFC][MarginCollapsing] Adjust vertical position when box margin collaps...
alan
Reported
2019-01-10 21:41:37 PST
https://www.w3.org/TR/CSS22/box.html#collapsing-margins
If the top and bottom margins of a box are adjoining, then it is possible for margins to collapse through it. In this case, the position of the element depends on its relationship with the other elements whose margins are being collapsed. If the element's margins are collapsed with its parent's top margin, the top border edge of the box is defined to be the same as the parent's. Otherwise, either the element's parent is not taking part in the margin collapsing, or only the parent's bottom margin is involved. The position of the element's top border edge is the same as it would have been if the element had a non-zero bottom border.
Attachments
Patch
(18.09 KB, patch)
2019-01-10 21:53 PST
,
alan
no flags
Details
Formatted Diff
Diff
Patch
(18.41 KB, patch)
2019-01-11 07:45 PST
,
alan
koivisto
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
alan
Comment 1
2019-01-10 21:53:52 PST
Created
attachment 358876
[details]
Patch
alan
Comment 2
2019-01-11 07:45:29 PST
Created
attachment 358895
[details]
Patch
alan
Comment 3
2019-01-11 08:19:48 PST
Committed
r239863
: <
https://trac.webkit.org/changeset/239863
>
Radar WebKit Bug Importer
Comment 4
2019-01-11 08:20:30 PST
<
rdar://problem/47209819
>
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