Skip to content

Conversation

@eerii
Copy link
Member

@eerii eerii commented Oct 27, 2025

7f7a5d9

Implement the scriptlevel attribute
https://bugs.webkit.org/show_bug.cgi?id=49309

Reviewed by Frédéric Wang.

Implements the scriptlevel (https://w3c.github.io/mathml-core/#dfn-scriptlevel)
attribute as defined in the MathML Core specification. Sets a presentational
hint with the corresponding math-depth value.

* LayoutTests/imported/w3c/web-platform-tests/mathml/relations/css-styling/attribute-mapping-002-expected.txt:
* Source/WebCore/mathml/MathMLElement.cpp:
(WebCore::MathMLElement::hasPresentationalHintsForAttribute const):
(WebCore::MathMLElement::collectPresentationalHintsForAttribute):
* Source/WebCore/mathml/mathattrs.in:

Canonical link: https://commits.webkit.org/302841@main

e104a08

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 win
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🧪 wpe-wk2 ✅ 🧪 win-tests
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🧪 api-wpe
✅ 🧪 ios-wk2-wpt ✅ 🧪 mac-wk1 ✅ 🛠 wpe-cairo
✅ 🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🛠 gtk
✅ 🛠 vision ✅ 🧪 mac-AS-debug-wk2 ✅ 🧪 gtk-wk2
✅ 🛠 vision-sim ✅ 🧪 mac-wk2-stress ✅ 🧪 api-gtk
✅ 🛠 🧪 merge ✅ 🧪 vision-wk2 ✅ 🧪 mac-intel-wk2 🛠 playstation
✅ 🛠 tv ✅ 🛠 mac-safer-cpp
✅ 🛠 tv-sim
✅ 🛠 watch
✅ 🛠 watch-sim

@eerii eerii self-assigned this Oct 27, 2025
@eerii eerii added the MathML For bugs specific to MathML. label Oct 27, 2025
@eerii eerii marked this pull request as draft October 27, 2025 08:48
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Oct 27, 2025
@eerii eerii marked this pull request as ready for review October 27, 2025 11:37
@Ahmad-S792 Ahmad-S792 removed the merging-blocked Applied to prevent a change from being merged label Oct 27, 2025
@Ahmad-S792 Ahmad-S792 requested review from fred-wang and nt1m October 27, 2025 22:33
Copy link
Contributor

@fred-wang fred-wang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please consider my suggestion of using an enum if you agree it's more readable.

@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Nov 3, 2025
@fred-wang fred-wang added safe-merge-queue Applied to automatically send a pull-request to merge-queue after passing EWS checks and removed merging-blocked Applied to prevent a change from being merged labels Nov 11, 2025
@webkit-ews-buildbot webkit-ews-buildbot added merge-queue Applied to send a pull request to merge-queue and removed safe-merge-queue Applied to automatically send a pull-request to merge-queue after passing EWS checks labels Nov 11, 2025
@webkit-ews-buildbot
Copy link
Collaborator

Safe-Merge-Queue: Build #74780.

https://bugs.webkit.org/show_bug.cgi?id=49309

Reviewed by Frédéric Wang.

Implements the scriptlevel (https://w3c.github.io/mathml-core/#dfn-scriptlevel)
attribute as defined in the MathML Core specification. Sets a presentational
hint with the corresponding math-depth value.

* LayoutTests/imported/w3c/web-platform-tests/mathml/relations/css-styling/attribute-mapping-002-expected.txt:
* Source/WebCore/mathml/MathMLElement.cpp:
(WebCore::MathMLElement::hasPresentationalHintsForAttribute const):
(WebCore::MathMLElement::collectPresentationalHintsForAttribute):
* Source/WebCore/mathml/mathattrs.in:

Canonical link: https://commits.webkit.org/302841@main
@webkit-commit-queue
Copy link
Collaborator

Committed 302841@main (7f7a5d9): https://commits.webkit.org/302841@main

Reviewed commits have been landed. Closing PR #53028 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 7f7a5d9 into WebKit:main Nov 11, 2025
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Nov 11, 2025
@eerii eerii deleted the scriptlevel branch November 11, 2025 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

MathML For bugs specific to MathML.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants