Skip to content

Commit a5221ae

Browse files
committed
Try adding aria roles to one of the MathML expressions.
1 parent a9d7709 commit a5221ae

File tree

2 files changed

+98
-63
lines changed

2 files changed

+98
-63
lines changed

index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2383,7 +2383,8 @@ <h2>Calculating the length between two property values</h2>
23832383
<dd>
23842384
length is defined as the result of evaluating the following
23852385
expression
2386-
<math display="block">
2386+
<div role="math" aria-describedby="math-color-length">
2387+
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
23872388
<mrow>
23882389
<msqrt>
23892390
<msup>
@@ -2418,6 +2419,8 @@ <h2>Calculating the length between two property values</h2>
24182419
</msqrt>
24192420
</mrow>
24202421
</math>
2422+
<pre id="math-color-length">sqrt((ra - rb)^2 + (ga - gb)^2 + (ba - bb)^2 + 255*255*(aa - ab)^2)</pre>
2423+
</div>
24212424
<p>
24222425
where the colors between which the length is to be measured are
24232426
<code>rgba(ra, ga, ba, aa)</code> and

0 commit comments

Comments
 (0)