-
Notifications
You must be signed in to change notification settings - Fork 23k
relnote(Fx145): basic font-family: math characters #41732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Preview URLs Flaws (4)URL:
(comment last updated: 2025-10-31 11:26:17) |
|
@fred-wang do you have any thoughts for something nice here for demos? |
chrisdavidmills
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, @bsmth. I've got a couple of small comments, but nothing blocking:
- I wonder if you want to give the start of the new sentence the same form as the others, i.e., "This is an example of...". I'm not sure it matters really.
- Do you also want to give each
<div>some bottom margin, so the sentences are less squashed together?
|
I'm not sure there is a nice example to demo. Basically, if you use math characters they would either be displayed as tofu or picked from a font installed on your system. It is particularly important to use math fonts for MathML formulas, if you don't the rendering would be very bad for things like <math display="block">
<msqrt>
<mrow>
<munderover>
<mo>∑</mo>
<mrow>
<mi>n</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mrow>
<mo>+</mo>
<mn>∞</mn>
</mrow>
</munderover>
<mfrac>
<mn>10</mn>
<msup>
<mi>n</mi>
<mn>4</mn>
</msup>
</mfrac>
</mrow>
</msqrt>
</math>In the past, Firefox had some internal hacks to make sure the cc @eerii |
|
Thanks @chrisdavidmills:
I thought about this, but I think it's a little redundant for the math case.
Yessir! |
|
This pull request has merge conflicts that must be resolved before it can be merged. |
72e837a to
d960038
Compare
|
Thank you @eerii and @fred-wang, I'll leave the updates to be quite minimal then for the moment (limited to 25ac0a2), the context we have from your replies is already quite helpful. |
|
Thanks all, I'm going to merge in the current state for now. |


Description
Adding a few relevant characters to the math example.
Motivation
There wasn't really anything that shows much of the benefit of this. This is something minimal to at least show a few characters that look better with this style.
Feedback welcome on other ideas, but I think the original isn't too helpful by itself.
Related issues and pull requests