Skip to content

Commit

Permalink
Add UA sheet rules for font-style, font-weight, text-intent, line-hei…
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-wang committed Jul 3, 2020
1 parent b257e87 commit 108ce59
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,13 @@ <h4>The Top-Level <code>&lt;math&gt;</code> Element</h4>
to the
<a data-cite="CSS-FONTS-4#valdef-font-family-math"><code>math</code></a>
value on the <code>&lt;math&gt;</code> element instead of inheriting
it.
it. Additionally, several CSS properties that can be set on
a parent container such as
<code>font-style</code>, <code>font-weight</code>,
<code>direction</code> or <code>text-indent</code> etc
are not expected to apply to the math formula and so the
<a href="#user-agent-stylesheet">user agent stylesheet</a>
has rules to reset them by default.
</p>
<pre class="css" data-include="user-agent-stylesheet/math.css"></pre>
</section>
Expand Down Expand Up @@ -5491,8 +5497,6 @@ <h2>User Agent Stylesheet</h2>
/* Other rules for scriptlevel, displaystyle and math-shift */
</span><span data-include-replace="true" data-include="user-agent-stylesheet/radicals.css"></span><span data-include-replace="true" data-include="user-agent-stylesheet/scripts.css"></span>
</pre>
<div class="issue" data-number="34">Add rules for text-indent, line-height, word-spacing, letter-spacing?</div>
<div class="issue" data-number="36">Add font-style and font-weight on the math root?</div>
<div class="issue" data-number="94">Improve rules for href hyperlinks and focusable elements?</div>
</section>
<section>
Expand Down
10 changes: 7 additions & 3 deletions user-agent-stylesheet/math.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
math {
direction: ltr;
writing-mode: horizontal-tb;
display: inline-math;
font-size: inherit;
font-style: normal;
text-indent: 0;
letter-spacing: normal;
line-height: normal;
word-spacing: normal;
font-family: math;
font-style: normal;
font-weight: normal;
display: inline-math;
math-style: compact;
math-shift: normal;
}
Expand Down

0 comments on commit 108ce59

Please sign in to comment.