blob: b2228eace08de4c9cc03cb4a618ef785b21f3e21 [file] [log] [blame]
<!doctype html>
<html>
<head>
<title>mathvariant inheritance</title>
<meta charset="utf-8"/>
</head>
<body>
<!-- Verify that fraktur is inherited on mtext. -->
<math mathvariant="fraktur">
<mtext>A</mtext>
</math><br/>
<math>
<mstyle mathvariant="fraktur">
<mtext>A</mtext>
</mstyle>
</math><br/>
<!-- Verify that the value specified on the mtext overrides the inherited value. -->
<math mathvariant="fraktur">
<mtext mathvariant="script">A</mtext>
</math><br/>
<math>
<mstyle mathvariant="fraktur">
<mtext mathvariant="script">A</mtext>
</mstyle>
</math><br/>
<!-- Verify that the inherited value replaces the implicit italic value of the mi. -->
<math mathvariant="fraktur">
<mi>A</mi>
</math><br/>
<math>
<mstyle mathvariant="fraktur">
<mi>A</mi>
</mstyle>
</math><br/>
<!-- Test a chain of inheritance -->
<math mathvariant="fraktur">
<mtext>A</mtext>
<mstyle mathvariant="double-struck">
<mtext>A</mtext>
<mstyle mathvariant="script">
<mtext>A</mtext>
</mstyle>
</mstyle>
</math>
</body>
</html>