Description
This proposal is to simplify mstyle so that it only supports the following attributes:
- displaystyle
- dir
- mathsize
- mathbackground
- mathcolor
- mathvariant
- scriptlevel
And maybe:
- scriptsizemultiplier
- scriptminsize
From the Math WG mailing list:
https://lists.w3.org/Archives/Public/www-math/2016Jul/0024.html
From the appendix of the original "MathML in HTML5" document:
"The mstyle element duplicates the CSS inheritance mechanism in a CSS-incompatible way and has many exceptions to workaround the fact that attribute names may be used for different purposes. In practice, many of its attributes are not useful and never used. It is a burden for implementers since they essentially have to reimplement a specific “attribute” inheritance mechanism to support the general case even if the most prominent attributes have obvious mapping to CSS. It is also a performance issue to perform the rendering and keep it up-to-date since the rendering on any node may depend on its mstyle ancestors. In this document, it instead suggested to keep only attributes that are compatible with CSS and five new CSS properties are introduced in section 2.3.1. These attributes actually correspond to what is used in practice. "
edit:
This is the proposal for CSS attributes that cannot be mapped to style yet: https://github.com/mathml-refresh/mathml-css-proposals#mathml-css-proposals