Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /mathml/relations/css-styling/padding-border-margin/padding-border-margin-004.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Padding/border/margin on an mi with italic mathvariant</title>
<link rel="match" href="padding-border-margin-004-ref.html"/>
<meta name="assert" content="Verify visual rendering of padding/border/margin on an mi with italic mathvariant.">
<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>
<mi style="background: blue; border: 10px dashed yellow; padding: 10px; margin: 10px; color: cyan;">A</mi>
</math>
</div>
</body>
</html>