-
Notifications
You must be signed in to change notification settings - Fork 488
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
Swap out MathML stylesheet #7607
Comments
This comment was marked as outdated.
This comment was marked as outdated.
I have implemented this in #7620, but I don't see any change in Chrome/Firefox/Safari (on Mac OS). Is this font really necessary? PS: However, I noticed that the Polyfill is not loaded in live samples, so I fixed that in #7621 by directly loading the polyfill from @fred-wang's GitHub page. It's not ideal and won't load the font, but at least the MathML live samples will work now. |
@caugner mac OS ventura has STIX Two Math pre-installed, so you won't see any difference (nit: it might be good to add |
Incidentally, my original comment was in https://github.com/orgs/mdn/discussions/260#discussioncomment-3866252 ; the word |
@fred-wang Thank you, i have now added the local src in #7620. Currently, we only load the regular STIX Two Math font, but your mathfonts.css polyfill also load STIX Two Text in four variants (Regular/Bold/Italic/BoldItalic). Would you say we also need to load these on MDN? PS: I have to admit, I'm not familiar with the .htmlmathparagraph, m|mtext {
font-family: STIX Two Text;
}
m|math {
font-family: STIX Two Math;
} |
@caugner Thanks. STIX Two Math is important because it provides a way to draw stretchy fences, big integral, special metrics for math layout, etc However, not using STIX Two Text for mtext should be fine ( I believe it has the same look & feel as STIX Two Math anyway) so I don't think it's needed.
|
Summary
Quite a bit of work happened recently on the MathML docs (thank you @fred-wang ), however the current MathML stylesheet used with the polyfill isn't as good as the one included with the examples.
We shouldn't really be including stylesheets with examples. A discussion was opened here https://github.com/orgs/mdn/discussions/260 to better understand how we can approach this.
The conclusion was:
So I guess the right thing to do is to have:
@font-face
for STIX Two Math since that would be done in 1)Content can cover 3. but it'd be great for 1. & 2. to be addressed
URL
https://github.com/mdn/content/blob/main/files/en-us/web/mathml/element/munderover/index.md?plain=1#L29-L34
Reproduction steps
n/a
Expected behavior
Better styling and ability to remove loaded stylesheets from content
Actual behavior
Included stylesheet
Device
Desktop
Browser
Chrome
Browser version
Stable
Operating system
Mac OS
Screenshot
See screenshots in discussion https://github.com/orgs/mdn/discussions/260
Anything else?
No response
Validations
The text was updated successfully, but these errors were encountered: