Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9859ca110720f4aa00864da517dc6ea34a24e259
https://github.com/WebKit/WebKit/commit/9859ca110720f4aa00864da517dc6ea34a24e259
Author: Ahmad Saleem <[email protected]>
Date: 2026-10-12 (Mon, 12 Oct 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/html/rendering/non-replaced-elements/the-page/body-margin-3a-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/html/rendering/non-replaced-elements/the-page/body-margin-3b-expected.txt
M Source/WebCore/html/HTMLAttributeNames.in
M Source/WebCore/html/HTMLBodyElement.cpp
Log Message:
-----------
Remove support for body's rightmargin and bottommargin presentational
attributes
https://bugs.webkit.org/show_bug.cgi?id=327127
rdar://189727708
Reviewed by Chris Dumez.
This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.
The HTML spec only maps the marginheight, topmargin, marginwidth and leftmargin
attributes on the body element to margin properties [1]. topmargin and
marginheight
apply to both the top and bottom margins, and leftmargin and marginwidth apply
to
both the left and right margins. WebKit also mapped the non-standard rightmargin
and bottommargin attributes to margin-right and margin-bottom, which this patch
removes.
[1] https://html.spec.whatwg.org/multipage/rendering.html#the-page
*
LayoutTests/imported/w3c/web-platform-tests/html/rendering/non-replaced-elements/the-page/body-margin-3a-expected.txt:
Progression
*
LayoutTests/imported/w3c/web-platform-tests/html/rendering/non-replaced-elements/the-page/body-margin-3b-expected.txt:
Progression
* Source/WebCore/html/HTMLAttributeNames.in:
* Source/WebCore/html/HTMLBodyElement.cpp:
(WebCore::HTMLBodyElement::hasPresentationalHintsForAttribute const):
(WebCore::HTMLBodyElement::collectPresentationalHintsForAttribute):
Canonical link: https://commits.webkit.org/323444@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications