From 603fb1740a81e5e7bf12b7488f8243fa096aaa17 Mon Sep 17 00:00:00 2001 From: deyan Date: Tue, 12 Nov 2024 12:25:43 -0500 Subject: [PATCH] example of using intent to capture some CSS customization for AT --- src/intent.html | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/intent.html b/src/intent.html index a6690e1..592f8b9 100644 --- a/src/intent.html +++ b/src/intent.html @@ -562,7 +562,34 @@

Intent Examples

bell number of 2
- +
+

CSS and Style

+ +

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:

+
+
+<mn>1</mn><mo>+</mo>
+<mrow style="padding:0.1em;background-color:lightyellow;"
+      intent="highlighted-step($step)">
+  <mfrac arg="step"><mn>6</mn><mn>2</mn></mfrac>
+</mrow>
+<mi>x</mi>
+<mo>=</mo>
+<mn>1</mn><mo>+</mo>
+<mn style="padding:0.1em;background-color:lightgreen;"
+    intent="highlighted-result(3)">3</mn>
+<mi>x</mi>
+
+
one plus highlighted step of six over two end highlighted step x + equals one plus highlighted result of three end highlighted result x +
+
+
+

Tables