-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add scriptsizemultiplier to core #39
Comments
This was discussed at the Core meeting today. My suggestion is that @davidcarlisle suggested someone could write CSS rules on msub, msup, etc., that scaled the fontsize of the scripts (etc). You can do this for just first level scripts or with a little more complexity for second level scripts and that would catch almost every case that is not made up. @bkardell pointed out that user settable style sheets have gone away. He thought a magnifying lens cursor (or similar) could be used to read scripts. This would be a browser extension, as could potentially some CSS modifications. I did a little investigation as to current practice when people aren't using ZoomText or other similar AT:
Based on this, there appears to be a workaround (a browser extension that implements @davidcarlisle's idea). It's a useful hack that mostly works, but it's not perfect. Whatever is decided, we probably should contact WAI about adding suggestions for math accessibility to their user-facing pages. |
At the Nov 1 meeting, we agreed this is potentially important to accessibility. @NSoiffer will write some text in a note in the core spec with @bkardell @fred-wang to review it. The note should mention the accessibility angle and solicit input from relevant parties. |
I know this is not for MathML Core Level 1, but just adding some old thoughts from last year (some of them discussed with @emilio on Mozilla's MathML matrix channel):
I personally don't think adding |
Re @fred-wang's comment
I am afraid it is also pretty easy for unsuspecting users to run into the issue and wonder what happened. I encountered it today with my continuing fraction example, illustrating HackMD's support for MathML: https://hackmd.io/@dginev/BJhlco6cj By default in today's Chrome, in the third and fourth nested To my vision (which used to be excellent and is still "pretty good"), the 6 pixel font-size is just barely acceptable as legible. At the 4 and 3 pixel sizes I can not see anything, and I need to zoom the page to get anywhere. You can remove the Would it make sense to pose a size limit on this scaling algorithm by default? In other words
That would make continuing fractions usable by default, rather than "disappearing by default". Maybe another mechanism fits better? |
MathML Full has
Looking through the issues, I see the 29/4/19 meeting says
However, there is this 2019/03/19 comment by @fred-wang that says
Unfortunately, that feature never made it into CSS: the basis for making the decision turns out to no longer be true. Hence, the issue should be reopened and the decision reconsidered. Perhaps there is another way to do it with CSS or perhaps we really should have |
CSS indeed allows implementing variants of this - and adding one of them to the various browser "user agent stylesheets" could be a way to patch the short-term issue. But I'm not sure if there is a CSS path to a standard mechanism? Can MathML Core mandate entries that MUST be in the UA stylesheet? Or is this a dead end? Here's what I got to work by putting together several of Fred's and Neil's comments above: :root {
--scriptminsize: 10px;
--scriptsizemultiplier: 0.75;
}
mfrac > * {
font-size:max(
var(--scriptminsize),
var(--scriptsizemultiplier)*1em
);
} |
There is already a UA style sheet in the spec which is how basically all the MathML elements get styled by default. I will note though I don't think any UA stylesheet includes any custom properties, and probably shouldn't given they might collide with user's own custom properties (and with |
MathML 3 defines scriptsizemultiplier. It can be used for many things, but one important thing it is used for is displaying math for people with low vision. With the standard shrinkage, scripts are hard to read and nested scripts and radical indices are especially difficult to read for people with vision issues.
The CG agreed to remove it and rely on an OpenType value, but we did not think about accessibility and so its exclusion from core should be reconsidered. The usage stats show it being used with a value of 0.85; that larger value (larger than the default of around 0.71) may well be for accessibility reasons.
The text was updated successfully, but these errors were encountered: