Skip to content

Commit

Permalink
Merge pull request #517 from dginev/main
Browse files Browse the repository at this point in the history
CSS and Intent
  • Loading branch information
NSoiffer authored Nov 14, 2024
2 parents 972e052 + 603fb17 commit ab5e122
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion src/intent.html
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,34 @@ <h3 id="mixing_intent_examples">Intent Examples</h3>
<blockquote>bell number of 2</blockquote>
</div>


<section>
<h4 id="mixing_intent_examples_css">CSS and Style</h4>

<p>CSS customization of MathML is generally not made available to AT and is ignored
in accessible readouts.
In cases where authors have meaningful stylistic emphases,
or stylized constructs with custom names, using an intent attribute is appropriate.
For example, color-coding of subexpressions is often helpful in teaching materials:</p>
<div class="example mathml mmlcore">
<pre>
&lt;mn&gt;1&lt;/mn&gt;&lt;mo&gt;+&lt;/mo&gt;
&lt;mrow style="padding:0.1em;background-color:lightyellow;"
intent="highlighted-step($step)"&gt;
&lt;mfrac arg="step"&gt;&lt;mn&gt;6&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/mfrac&gt;
&lt;/mrow&gt;
&lt;mi&gt;x&lt;/mi&gt;
&lt;mo&gt;=&lt;/mo&gt;
&lt;mn&gt;1&lt;/mn&gt;&lt;mo&gt;+&lt;/mo&gt;
&lt;mn style="padding:0.1em;background-color:lightgreen;"
intent="highlighted-result(3)"&gt;3&lt;/mn&gt;
&lt;mi&gt;x&lt;/mi&gt;
</pre>
<blockquote>one plus highlighted step of six over two end highlighted step x
equals one plus highlighted result of three end highlighted result x
</blockquote>
</div>
</section>

<section>
<h4 id="mixing_intent_examples_mtr">Tables</h4>

Expand Down

0 comments on commit ab5e122

Please sign in to comment.