<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>209595</bug_id>
          
          <creation_ts>2020-03-26 06:34:17 -0700</creation_ts>
          <short_desc>Add support for font-family: math</short_desc>
          <delta_ts>2025-09-02 08:23:50 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>MathML</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.mozilla.org/show_bug.cgi?id=1788937</see_also>
    
    <see_also>https://bugs.chromium.org/p/chromium/issues/detail?id=1228189</see_also>
          <bug_file_loc>http://wpt.live/mathml/relations/css-styling/default-font-family.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>195797</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Frédéric Wang Nélar">fred.wang</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1634299</commentid>
    <comment_count>0</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2020-03-26 06:34:17 -0700</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1982666</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-10-04 18:01:32 -0700</bug_when>
    <thetext>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

&gt;&gt;&gt; http://wpt.live/mathml/relations/css-styling/default-font-family.html

Although I don&apos;t know whether we have more to do here or not but still just wanted to flag.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2066454</commentid>
    <comment_count>2</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2024-10-09 02:08:44 -0700</bug_when>
    <thetext>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&apos;s system.

So I think we should wait &quot;font-family: math&quot; to be implemented before.

As a bonus, it would be nice if the hardcoded list could be configurable as a preference, but maybe that&apos;s the separate issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2132456</commentid>
    <comment_count>3</comment_count>
    <who name="Eri">eri</who>
    <bug_when>2025-07-25 00:11:44 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/48510</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2135587</commentid>
    <comment_count>4</comment_count>
    <who name="Eri">eri</who>
    <bug_when>2025-08-11 02:10:14 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/49208</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2137960</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-08-21 05:05:25 -0700</bug_when>
    <thetext>Committed 299006@main (f5332f0677c1): &lt;https://commits.webkit.org/299006@main&gt;

Reviewed commits have been landed. Closing PR #48510 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2137961</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-08-21 05:06:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/158851931&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2140236</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-09-02 08:23:50 -0700</bug_when>
    <thetext>Committed 299434@main (3efcbb374ccb): &lt;https://commits.webkit.org/299434@main&gt;

Reviewed commits have been landed. Closing PR #49208 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>