*Summary:* Up until now, Firefox used an internal language <https://bugzilla.mozilla.org/show_bug.cgi?id=947654>, |x-math|, to select from a list of mathematical fonts to render MathML |<math>| tags. CSS has added <https://www.w3.org/TR/css-fonts-4/#math-def> a new |math| generic font family, which allows authors to style content with a mathematical font and serves a similar purpose. Additionally, the MathML Core spec says <https://w3c.github.io/mathml-core/#the-top-level-math-element> that |math| should be the default font family for |<math>| tags in the user agent stylesheet. Replacing |x-math| with |font-family: math| brings Firefox closer to the spec.

*Bug:* https://bugzilla.mozilla.org/show_bug.cgi?id=1788937.

*Specification:* https://www.w3.org/TR/css-fonts-4/#math-def, https://w3c.github.io/mathml-core/#the-top-level-math-element.

*Standards Body:* W3C.

*Platform coverage:* All platforms.

*Preference:* |mathml.font_family_math.enabled|.

*Link to standards-positions discussion:* https://github.com/mozilla/standards-positions/issues/564.

*Other browsers:*

 * Blink: shipped in
   https://chromium-review.googlesource.com/c/chromium/src/+/2119534.
 * WebKit: working on a similar implementation.

*web-platform-tests:*

 * Existing tests that are now passing for |math|:
     o |mathml/relations/css-styling/default-font-family.html|
       
<https://github.com/web-platform-tests/wpt/blob/master/mathml/relations/css-styling/default-font-family.html>.
     o |css/css-fonts/generic-family-keywords-001.html|
       
<https://github.com/web-platform-tests/wpt/blob/master/css/css-fonts/generic-family-keywords-001.html>.
     o |css/css-fonts/generic-family-keywords-003.html|
       
<https://github.com/web-platform-tests/wpt/blob/master/css/css-fonts/generic-family-keywords-003.html>.

&#8203;

--
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/1cd92aed-1a08-4b98-8a31-cc7016bd1dda%40igalia.com.

Reply via email to