Commit 45d2ff0
[LegacySVG] Margin collapsing should not occur at the foreignObject boundary
https://bugs.webkit.org/show_bug.cgi?id=23963
rdar://97208795
Reviewed by Alan Baradlay.
This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.
Merge: https://chromium.googlesource.com/chromium/src.git/+/eb26f063d73fce4d8a2cf64541667e0863cb6421
This patch makes foreignObject a block formatting context (BFC) which
prevents margin collapsing across the foreignObject boundary. This
function (createsNewFormattingContext) is limited to BFC context nowadays.
https://svgwg.org/svg2-draft/single-page.html#embedded-ForeignObjectElement
* Source/WebCore/rendering/RenderBlock.cpp:
(WebCore::RenderBlock::createsNewFormattingContext const):
* LayoutTests/platform/glib/svg/custom/dominant-baseline-hanging-expected.txt:
* LayoutTests/platform/ios/svg/custom/dominant-baseline-hanging-expected.txt:
* LayoutTests/platform/mac/svg/custom/dominant-baseline-hanging-expected.txt:
* LayoutTests/platform/win/svg/custom/dominant-baseline-hanging-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/svg/extensibility/foreignObject/containing-block-expected.txt: Progressions
* LayoutTests/imported/w3c/web-platform-tests/svg/extensibility/foreignObject/getboundingclientrect-expected.txt: Progressions
Canonical link: https://commits.webkit.org/304916@main1 parent c97896f commit 45d2ff0
File tree
7 files changed
+7
-7
lines changed- LayoutTests
- imported/w3c/web-platform-tests/svg/extensibility/foreignObject
- platform
- glib/svg/custom
- ios/svg/custom
- mac/svg/custom
- win/svg/custom
- Source/WebCore/rendering
7 files changed
+7
-7
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1355 | 1355 | | |
1356 | 1356 | | |
1357 | 1357 | | |
1358 | | - | |
| 1358 | + | |
1359 | 1359 | | |
1360 | 1360 | | |
1361 | 1361 | | |
| |||
0 commit comments