Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Padding/border/margin on an mi with italic mathvariant (reference)</title>
<style>
  @font-face {
    font-family: TestFont;
    src: url("/fonts/math/mathvariant-italic.woff");
  }
  math  {
    font-family: TestFont;
    font-size: 300px;
  }
</style>
<body>
  <p>This test passes if you see the text <code>1d434</code> in cyan on a blue
    background, surrounded by a 10px padding, surrounded by a 10px
    yellow dashed border, itself surrounded by a 10px pink margin.</p>
  <div style="background: pink; position: absolute; left: 10px; top: 4em;">
    <math>
      <mtext style="background: blue; border: 10px dashed yellow; padding: 10px; margin: 10px; color: cyan;">𝐴</mtext>
    </math>
  </div>
</body>
</html>