Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
            
- /mathml/presentation-markup/fractions/default-mfrac-padding-style.html - WPT Dashboard Interop Dashboard
 
 
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test the mfrac element</title>
<link rel="author" title="Ahmad Saleem" href="mailto:ahmad.saleem792@gmail.com">
<meta name="assert" content="Verify default mfrac style.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
  <div id="log"></div>
  <div>
    <math>
        <mfrac id="mfrac">
            <mn>1</mn>
            <mn>2</mn>
        </mfrac>
    </math>
  </div>
<script>
    test(function () {
        var style = window.getComputedStyle(document.getElementById("mfrac"));
        assert_equals(style.paddingInlineStart, "1px");
        assert_equals(style.paddingInlineEnd, "1px");
    }, "Default CSS properties on mfrac");
</script>
</body>
</html>