Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d133d2f62153c9d5d574827111eb0fbe53b2f36e
https://github.com/WebKit/WebKit/commit/d133d2f62153c9d5d574827111eb0fbe53b2f36e
Author: Eri Pazos Pérez <[email protected]>
Date: 2025-10-02 (Thu, 02 Oct 2025)
Changed paths:
M LayoutTests/accessibility/math-foreign-content.html
M LayoutTests/imported/w3c/resources/resource-files.json
A
LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/maction-click-expected.html
A
LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/maction-click-ref.html
A
LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/maction-click.html
M
LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/w3c-import.log
A LayoutTests/mathml/non-core/maction-dynamic-expected.html
A LayoutTests/mathml/non-core/maction-dynamic.html
A LayoutTests/mathml/non-core/maction-expected.html
A LayoutTests/mathml/non-core/maction-toggle-expected.html
A LayoutTests/mathml/non-core/maction-toggle-href-expected.html
A LayoutTests/mathml/non-core/maction-toggle-href.html
A LayoutTests/mathml/non-core/maction-toggle.html
A LayoutTests/mathml/non-core/maction.html
A LayoutTests/mathml/non-core/semantics-2-expected.html
A LayoutTests/mathml/non-core/semantics-2.html
A LayoutTests/mathml/non-core/semantics-3-expected.html
A LayoutTests/mathml/non-core/semantics-3.html
A LayoutTests/mathml/non-core/semantics-4-expected.html
A LayoutTests/mathml/non-core/semantics-4.html
A LayoutTests/mathml/non-core/semantics-expected.html
A LayoutTests/mathml/non-core/semantics.html
R LayoutTests/mathml/presentation/maction-dynamic-expected.html
R LayoutTests/mathml/presentation/maction-dynamic.html
R LayoutTests/mathml/presentation/maction-expected.html
R LayoutTests/mathml/presentation/maction-toggle-expected.html
R LayoutTests/mathml/presentation/maction-toggle-href-expected.html
R LayoutTests/mathml/presentation/maction-toggle-href.html
R LayoutTests/mathml/presentation/maction-toggle.html
R LayoutTests/mathml/presentation/maction.html
R LayoutTests/mathml/presentation/semantics-2-expected.html
R LayoutTests/mathml/presentation/semantics-2.html
R LayoutTests/mathml/presentation/semantics-3-expected.html
R LayoutTests/mathml/presentation/semantics-3.html
R LayoutTests/mathml/presentation/semantics-4-expected.html
R LayoutTests/mathml/presentation/semantics-4.html
R LayoutTests/mathml/presentation/semantics-expected.html
R LayoutTests/mathml/presentation/semantics.html
M LayoutTests/platform/glib/accessibility/math-foreign-content-expected.txt
A
LayoutTests/platform/glib/imported/w3c/web-platform-tests/html/syntax/parsing/html-integration-point-expected.txt
A
LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/presentation-markup/mrow/legacy-mrow-like-elements-001-expected.txt
A
LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/css-styling/default-properties-on-semantics-and-maction-expected.txt
M
LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/css-styling/ignored-properties-001-expected.txt
A
LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/css-styling/writing-mode/writing-mode-002-expected.txt
M
LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/html5-tree/dynamic-childlist-002-expected.txt
A
LayoutTests/platform/glib/mathml/presentation/foreign-element-in-annotation-xml-expected.txt
M LayoutTests/platform/mac/accessibility/math-foreign-content-expected.txt
M LayoutTests/svg/outermost-svg-root.html
M Source/WebCore/CMakeLists.txt
M Source/WebCore/DerivedSources.make
A Source/WebCore/css/mathmlCoreExtras.css
M Source/WebCore/mathml/MathMLAnnotationElement.cpp
M Source/WebCore/mathml/MathMLSelectElement.cpp
M Source/WebCore/style/InspectorCSSOMWrappers.cpp
M Source/WebCore/style/UserAgentStyle.cpp
M Source/WebCore/style/UserAgentStyle.h
Log Message:
-----------
Align semantics and maction with MathML Core
https://bugs.webkit.org/show_bug.cgi?id=262696
Reviewed by Frédéric Wang.
The MathML Core spec says that semantics
(https://w3c.github.io/mathml-core/#semantics-and-presentation) and
maction (https://w3c.github.io/mathml-core/#dfn-maction) have the same
layout algorithm as the mrow element. Additionally, add some rules to
the UA stylesheet to properly render these elements
(https://w3c.github.io/mathml-core/#user-agent-stylesheet).
Imports the /mathml/relations/html5-tree/maction-click.html test from
the WPT upstream repository.
Upstream commit: web-platform-tests/wpt@34e2cc1
Tests:
imported/w3c/web-platform-tests/mathml/relations/html5-tree/maction-click-ref.html
imported/w3c/web-platform-tests/mathml/relations/html5-tree/maction-click.html
mathml/non-core/maction-dynamic.html
mathml/non-core/maction-toggle-href.html
mathml/non-core/maction-toggle.html
mathml/non-core/maction.html
mathml/non-core/semantics-2.html
mathml/non-core/semantics-3.html
mathml/non-core/semantics-4.html
mathml/non-core/semantics.html
* LayoutTests/accessibility/math-foreign-content.html:
* LayoutTests/imported/w3c/resources/resource-files.json:
*
LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/maction-click-expected.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/maction-click-ref.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/maction-click.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/w3c-import.log:
* LayoutTests/mathml/non-core/maction-dynamic-expected.html: Renamed from
LayoutTests/mathml/presentation/maction-dynamic-expected.html.
* LayoutTests/mathml/non-core/maction-dynamic.html: Renamed from
LayoutTests/mathml/presentation/maction-dynamic.html.
* LayoutTests/mathml/non-core/maction-expected.html: Renamed from
LayoutTests/mathml/presentation/maction-expected.html.
* LayoutTests/mathml/non-core/maction-toggle-expected.html: Renamed from
LayoutTests/mathml/presentation/maction-toggle-expected.html.
* LayoutTests/mathml/non-core/maction-toggle-href-expected.html: Renamed from
LayoutTests/mathml/presentation/maction-toggle-href-expected.html.
* LayoutTests/mathml/non-core/maction-toggle-href.html: Renamed from
LayoutTests/mathml/presentation/maction-toggle-href.html.
* LayoutTests/mathml/non-core/maction-toggle.html: Renamed from
LayoutTests/mathml/presentation/maction-toggle.html.
* LayoutTests/mathml/non-core/maction.html: Renamed from
LayoutTests/mathml/presentation/maction.html.
* LayoutTests/mathml/non-core/semantics-2-expected.html: Renamed from
LayoutTests/mathml/presentation/semantics-2-expected.html.
* LayoutTests/mathml/non-core/semantics-2.html: Renamed from
LayoutTests/mathml/presentation/semantics-2.html.
* LayoutTests/mathml/non-core/semantics-3-expected.html: Renamed from
LayoutTests/mathml/presentation/semantics-3-expected.html.
* LayoutTests/mathml/non-core/semantics-3.html: Renamed from
LayoutTests/mathml/presentation/semantics-3.html.
* LayoutTests/mathml/non-core/semantics-4-expected.html: Renamed from
LayoutTests/mathml/presentation/semantics-4-expected.html.
* LayoutTests/mathml/non-core/semantics-4.html: Renamed from
LayoutTests/mathml/presentation/semantics-4.html.
* LayoutTests/mathml/non-core/semantics-expected.html: Renamed from
LayoutTests/mathml/presentation/semantics-expected.html.
* LayoutTests/mathml/non-core/semantics.html: Renamed from
LayoutTests/mathml/presentation/semantics.html.
* LayoutTests/platform/glib/accessibility/math-foreign-content-expected.txt:
*
LayoutTests/platform/glib/imported/w3c/web-platform-tests/html/syntax/parsing/html-integration-point-expected.txt:
Added.
*
LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/presentation-markup/mrow/legacy-mrow-like-elements-001-expected.txt:
Added.
*
LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/css-styling/default-properties-on-semantics-and-maction-expected.txt:
Added.
*
LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/css-styling/ignored-properties-001-expected.txt:
*
LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/css-styling/writing-mode/writing-mode-002-expected.txt:
Added.
*
LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/html5-tree/dynamic-childlist-002-expected.txt:
*
LayoutTests/platform/glib/mathml/presentation/foreign-element-in-annotation-xml-expected.txt:
Added.
* LayoutTests/platform/mac/accessibility/math-foreign-content-expected.txt:
* LayoutTests/svg/outermost-svg-root.html:
* Source/WebCore/CMakeLists.txt:
* Source/WebCore/DerivedSources.make:
* Source/WebCore/css/mathmlCoreExtras.css: Added.
(semantics > :not(:first-child)):
(maction > :not(:first-child)):
* Source/WebCore/mathml/MathMLAnnotationElement.cpp:
(WebCore::MathMLAnnotationElement::createElementRenderer):
(WebCore::MathMLAnnotationElement::childShouldCreateRenderer const):
* Source/WebCore/mathml/MathMLSelectElement.cpp:
(WebCore::MathMLSelectElement::childShouldCreateRenderer const):
(WebCore::MathMLSelectElement::updateSelectedChild):
(WebCore::MathMLSelectElement::defaultEventHandler):
(WebCore::MathMLSelectElement::willRespondToMouseClickEventsWithEditability
const):
* Source/WebCore/style/InspectorCSSOMWrappers.cpp:
(WebCore::Style::InspectorCSSOMWrappers::collectDocumentWrappers):
* Source/WebCore/style/UserAgentStyle.cpp:
(WebCore::Style::UserAgentStyle::ensureDefaultStyleSheetsForElement):
* Source/WebCore/style/UserAgentStyle.h:
Canonical link: https://commits.webkit.org/300875@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes