WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
209595
Add support for font-family: math
https://bugs.webkit.org/show_bug.cgi?id=209595
Summary
Add support for font-family: math
Frédéric Wang (:fredw)
Reported
2020-03-26 06:34:17 PDT
See
https://www.w3.org/TR/css-fonts-4/#valdef-font-family-math
https://mathml-refresh.github.io/mathml-core/#the-top-level-math-element
Attachments
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2023-10-04 18:01:32 PDT
By updating mathml.css, we do start passing following test case: math { font-family: math; }
https://github.com/WebKit/WebKit/blob/d265fb0d526aa8120a208bf62dc5a1e160400cc7/Source/WebCore/css/mathml.css#L72
>>>
http://wpt.live/mathml/relations/css-styling/default-font-family.html
Although I don't know whether we have more to do here or not but still just wanted to flag.
Frédéric Wang (:fredw)
Comment 2
2024-10-09 02:08:44 PDT
The current hardcoded rules are necessary to help WebKit to select known math fonts (i.e. fonts with an OpenType MATH table) installed on the user's system. So I think we should wait "font-family: math" to be implemented before. As a bonus, it would be nice if the hardcoded list could be configurable as a preference, but maybe that's the separate issue.
Eri
Comment 3
2025-07-25 00:11:44 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/48510
Eri
Comment 4
2025-08-11 02:10:14 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/49208
EWS
Comment 5
2025-08-21 05:05:25 PDT
Committed
299006@main
(f5332f0677c1): <
https://commits.webkit.org/299006@main
> Reviewed commits have been landed. Closing PR #48510 and removing active labels.
Radar WebKit Bug Importer
Comment 6
2025-08-21 05:06:13 PDT
<
rdar://problem/158851931
>
EWS
Comment 7
2025-09-02 08:23:50 PDT
Committed
299434@main
(3efcbb374ccb): <
https://commits.webkit.org/299434@main
> Reviewed commits have been landed. Closing PR #49208 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug