Implement math-shift: compact (TeX's "cramped")
Categories
(Core :: MathML, enhancement)
Tracking
()
People
(Reporter: fwang, Assigned: eri)
References
(Blocks 1 open bug, Regressed 1 open bug)
Details
(Keywords: dev-doc-needed)
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
Details |
- Spec:
- WPT:
This should replace what we call "compressed" or "cramped" in our code:
https://searchfox.org/mozilla-central/search?q=symbol:M_fbf1ee6a28c1ad46&redirect=false
https://searchfox.org/mozilla-central/search?q=compressed%7Ccramped&path=layout%2Fmathml&case=false®exp=true
| Reporter | ||
Updated•1 year ago
|
Updated•9 months ago
|
Backed out for causing non-unified build bustages @ nsMathMLmrootFrame.cpp
(In reply to amarc from comment #4)
I just commented on Phabricator, but I'll send it here too for the needinfo request:
I am very sorry about the busted built. It was indeed missing an import in layout/mathml/nsMathMLmrootFrame.cpp. I'm really puzzled about how that could slip by, since it was already missing in the first revision, but it didn't fail to build locally or in any of the try runs (1, 2, 3, 4). In any case, I apologize for the oversight. I have pushed a new revision with the import and started another try run.
| Reporter | ||
Comment 10•9 months ago
|
||
(In reply to eri from comment #9)
(In reply to amarc from comment #4)
I just commented on Phabricator, but I'll send it here too for the needinfo request:
I am very sorry about the busted built. It was indeed missing an import in
layout/mathml/nsMathMLmrootFrame.cpp. I'm really puzzled about how that could slip by, since it was already missing in the first revision, but it didn't fail to build locally or in any of the try runs (1, 2, 3, 4). In any case, I apologize for the oversight. I have pushed a new revision with the import and started another try run.
likely you need to try a non-unified build to be sure
Comment 11•9 months ago
|
||
Comment 12•9 months ago
|
||
| bugherder | ||
Comment 15•8 months ago
|
||
:eri could you consider nominating this for a release note? (Process info)
We could include it in the nightly only release notes.
| Assignee | ||
Comment 16•8 months ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: It improves MathML rendering in certain situations, bringing it closer to the MathML Core spec and TeX. For example, a superscript inside of a root is slightly shifted downwards to fit correctly. Before Firefox had many rules which didn't cover all of the possible cases, now they are more clearly defined in the mathml.css style sheet.
[Affects Firefox for Android]: Yes.
[Suggested wording]: Implement math-shift compact.
[Links (documentation, blog post, etc)]: https://w3c.github.io/mathml-core/#the-math-shift
Comment 17•8 months ago
|
||
Thanks, added to the Fx144 nightly release notes, please allow 30 minutes for the site to update.
Keeping the relnote-firefox flag as ? to keep it on the radar for inclusion in the final Fx144 release notes.
Comment 18•8 months ago
|
||
Hi Eri, it looks this patch added new telemetry for css_math_shift to the code generated file dom/base/use_counter_metrics.yaml. If I run ./mach gen-use-counter-metrics after making changes to dom/base/UseCounters.conf, the new telemetry will be removed. The build still works with it removed so I don't think this telemetry is actually being used anywhere.
I'm planning to remove some telemetry in Bug 1970931 anyway, so I can remove the css_math_shift telemetry there if it's unnecessary, I just wanted to check what the intention was. If there is a plan to use this telemetry, you should probably file a follow up bug to add it properly.
| Assignee | ||
Comment 19•8 months ago
|
||
Hi Dan, thank you for checking that, it's great that you caught it. The telemetry was left over from a previous version of the patch where I was looking at what math-style did. You are right, it is not being used anywhere at the moment, and I don't think there is any plan to do so. If you remove it in you patch that would be great, thank you!
Comment 20•8 months ago
|
||
Oops, it looks like rerunning ./mach gen-use-counter-metrics changes the order in the generated file, but leaves the new telemetry in place, so I'll do that.
Comment 22•7 months ago
|
||
This needs to be documented, so adding the dev-doc-needed flag.
Sebastian
Description
•