Skip to content

Commit 18623ab

Browse files
committed
Set font-family to math on the <math> tag.
w3c/mathml#37
1 parent dd4bf23 commit 18623ab

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

index.html

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -629,9 +629,9 @@ <h4>Legacy MathML Style Attributes</h4>
629629
of glyphs in math formulas but also scale other parts (spacing, shifts,
630630
line thickness of bars etc) accordingly.
631631
It is mapped to the CSS property
632-
<a data-cite="CSS-FONTS-3#font-size-prop"><code>font-size</code></a>
632+
<a data-cite="CSS-FONTS-4#font-size-prop"><code>font-size</code></a>
633633
and the <code>mathsize</code> values are interpreted according to the
634-
definition in [[CSS-FONTS-3]].
634+
definition in [[CSS-FONTS-4]].
635635
</p>
636636
<div class="note">
637637
The above attributes are implemented for compatibility with full MathML. Authors whose only target is MathML Core are encouraged to use CSS for styling.
@@ -794,6 +794,16 @@ <h3>The Top-Level <code>&lt;math&gt;</code> Element</h3>
794794
<code>display="block"</code> and <code>display="inline"</code>
795795
respectively.
796796
</div>
797+
<p>Because good mathematical rendering requires use of mathematical
798+
fonts, the
799+
<a href="#user-agent-stylesheet">user agent stylesheet</a>
800+
should set the
801+
<a data-cite="CSS-FONTS-4#font-family-prop"><code>font-family</code></a>
802+
to the
803+
<a data-cite="CSS-FONTS-4#valdef-font-family-math"><code>math</code></a>
804+
value on the <code>&lt;math&gt;</code> element instead of inheriting
805+
it.
806+
</p>
797807
</section>
798808
<section id="linkable-math-elements">
799809
<h3><dfn>MathML Hyperlink Elements</dfn></h3>
@@ -1322,7 +1332,7 @@ <h5>OpenType features</h5>
13221332
on its text nodes [[OPEN-FONT-FORMAT]]
13231333
unless it contradicts what the page author has
13241334
specified with the
1325-
<a data-cite="CSS-FONTS-3#font-rend-desc"><code>font-feature-settings</code></a>
1335+
<a data-cite="CSS-FONTS-4#font-rend-desc"><code>font-feature-settings</code></a>
13261336
CSS property.
13271337
</p>
13281338
</section>
@@ -5001,7 +5011,7 @@ <h3>The <code>math-style</code> property</h3>
50015011
layout on descendants should try to minimize the
50025012
<a data-cite="CSS-WRITING-MODES-3#extent">logical height</a>.
50035013
This includes how
5004-
<a data-cite="CSS-FONTS-3#font-size-prop"><code>font-size</code></a>
5014+
<a data-cite="CSS-FONTS-4#font-size-prop"><code>font-size</code></a>
50055015
is changed when <a><code>math-script-level</code></a> is
50065016
<code>auto</code> as well
50075017
miscelleanous layout rules described in details in
@@ -5055,7 +5065,7 @@ <h3>The <code>math-script-level</code> property</h3>
50555065
</p>
50565066
<p>
50575067
If
5058-
<a data-cite="CSS-FONTS-3#font-size-prop"><code>font-size</code></a>
5068+
<a data-cite="CSS-FONTS-4#font-size-prop"><code>font-size</code></a>
50595069
is specified or if the specified value of
50605070
<code>math-script-level</code> is <code>initial</code> then
50615071
<code>math-script-level</code> does not affect the computed value of
@@ -5113,7 +5123,7 @@ <h2>OpenType <code>MATH</code> table</h2>
51135123
<code>MathValueRecord</code> entry) are scaled to appropriate values
51145124
for layout purpose, taking into account
51155125
<code>head.unitsPerEm</code>, CSS
5116-
<a data-cite="CSS-FONTS-3#font-size-prop"><code>font-size</code></a>
5126+
<a data-cite="CSS-FONTS-4#font-size-prop"><code>font-size</code></a>
51175127
or zoom level.
51185128
</p>
51195129
<section>
@@ -5624,7 +5634,6 @@ <h2>User Agent Stylesheet</h2>
56245634
<div class="issue" data-number="35">CSS writing-mode and direction on the math root?</div>
56255635
<div class="issue" data-number="36">font-style and font-weight on the math root?</div>
56265636
<div class="issue" data-number="94">links and focusable elements?</div>
5627-
<div class="issue" data-number="37">default font-family?</div>
56285637
<pre class="css">@namespace url(http://www.w3.org/1998/Math/MathML);
56295638

56305639
/* Default display */

user-agent-stylesheet/math.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ math {
33
display: inline;
44
font-size: inherit;
55
font-style: normal;
6-
font-family: serif;
6+
font-family: math;
77
math-style: inline;
88
math-script-level: initial;
99
}

0 commit comments

Comments
 (0)