Bug 1726580 [wpt PR 30087] - [mathml] Implement font-family: math and use it for...
commitdd1d8f830524009a2fa8b2bd64f76fb0d3b8ae9e
authorFrédéric Wang <fwang@igalia.com>
Wed, 1 Sep 2021 14:06:08 +0000 (1 14:06 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 2 Sep 2021 10:30:23 +0000 (2 10:30 +0000)
treea936016d22b2fc2af8022fe972cea2c9b29e6b57
parent84f39ef6def3f96efb28a06cbc7e3d9e051ef5c6
Bug 1726580 [wpt PR 30087] - [mathml] Implement font-family: math and use it for <math> tags., a=testonly

Automatic update from web-platform-tests
[mathml] Implement font-family: math and use it for <math> tags.

This CL implements the generic font family name "math" [1] and use
it as the default family for MathML <math> tags in the UA stylesheet
[2]. This is done under a new CSSFontFamilyMath experimental feature
implied by the MathMLCore one. This CL only introduces core logic,
with the expectation that it will be refined later:

- font-family: math is not used to pick a math font on Android since
  no font with an OpenType table are pre-installed [3].

- font-family: math just use the hardcoded "Latin Modern Math" font
  on other platforms. They should be configurable by the users.

Intent to prototype is [4].

[1] https://www.w3.org/TR/css-fonts-4/#valdef-font-family-math
[2] https://w3c.github.io/mathml-core/#the-top-level-math-element
[3] https://github.com/googlefonts/noto-fonts/issues/330
[4] https://groups.google.com/a/chromium.org/g/blink-dev/c/CnQuMzqabqE/m/WlZfKOSpAAAJ

Bugs: 6606, 1228189
Change-Id: I546de83520c74df593260f35f670c076ba774872
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2119534
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Commit-Queue: Frédéric Wang <fwang@igalia.com>
Cr-Commit-Position: refs/heads/main@{#914708}

--

wpt-commits: 755037a1db0cbb0958f59c5137207bb530bebd23
wpt-pr: 30087
testing/web-platform/tests/mathml/relations/css-styling/display-2.html