Re: [csswg-drafts] [css-fonts-4] Managing the scaling of font-size within MathML rendering (#5389)

Thanks @fantasai !

MathML3 says that an explicit font-size overrides the effect of scriptlevel change, so that excludes option A, B-1 and C.

Option B-2 looks more or less what MathML Core was trying to achieve in the orignal proposal. To make it work, MathML Core would only need to ensure font-size is set to math at least for the default UA stylesheet inheritance and when the scriptlevel attribute is used ; or maybe even on all MathML elements but the `<math>` root.

Additionally, using this explicit `math` keyword will allow authors to modify the `math-depth` without a font-size change as a side effect. In particular, the MathML UA stylesheet could do:

    math {
      font-size: inherited;
      math-depth: 0;
    }

to ensure the math-depth is 0 on the `<math>` root and so absolute values of scriptlevel are correctly interpreted.

About option D, I don't think that's necessary for the MathML use case. The reason why I tried to incorporate it into font-size was to simplify the proposal to make it more easily acceptable to the CSSWG but if people are happy with a separate math-depth counter, I wouldn't add more complexity.


-- 
GitHub Notification of comment by fred-wang
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5389#issuecomment-689989000 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 10 September 2020 05:17:31 UTC