Skip to content

Conversation

@hamishwillee
Copy link
Contributor

FF146 adds support for mirroring MathML operators in RTL languages in https://bugzilla.mozilla.org/show_bug.cgi?id=1994172. It also adds support for stretching operators and grouping symbols (like braces) around expressions - does not have to be in RTL mode.

More correctly, it has supported operator mirroring for some time in normal text for some time but this hasn't worked properly with operators and stretching. Also previously the behaviour was non standard, and now it is part of the spec. From the developer:

"In the past mirroring worked for normal text and stretching/largeop worked for math operators ; now the these two features properly work when used in combination".

This adds a subfeature to the mathML dir global attribute, which I think is the best place to highlight this. Arguably you could add this subfeature to the <mo>, <msqrt>, <mfenced> since those are the specific affected elements. The relevant spec part is https://w3c.github.io/mathml-core/#layout-of-operators - if you need me to put it there instead I can.

Related docs work can be tracked in mdn/content#41878

@github-actions github-actions bot added data:mathml Compat data for MathML features. https://developer.mozilla.org/docs/Web/MathML size:m [PR only] 25-100 LoC changed labels Dec 2, 2025
"spec_url": "https://w3c.github.io/mathml-core/#layout-of-operators",
"support": {
"chrome": {
"version_added": "144"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is from https://cr-status.appspot.com/feature/6317308531965952 - note that I haven't tested this on Chrome.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2025

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:mathml Compat data for MathML features. https://developer.mozilla.org/docs/Web/MathML size:m [PR only] 25-100 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant