default-mfrac-padding-style.html (877B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Test the mfrac element</title> 6 <link rel="author" title="Ahmad Saleem" href="mailto:ahmad.saleem792@gmail.com"> 7 <link rel="help" href="https://w3c.github.io/mathml-core/#user-agent-stylesheet"> 8 <meta name="assert" content="Verify default mfrac style."> 9 <script src="/resources/testharness.js"></script> 10 <script src="/resources/testharnessreport.js"></script> 11 </head> 12 <body> 13 <div id="log"></div> 14 <div> 15 <math> 16 <mfrac id="mfrac"> 17 <mn>1</mn> 18 <mn>2</mn> 19 </mfrac> 20 </math> 21 </div> 22 <script> 23 test(function () { 24 var style = window.getComputedStyle(document.getElementById("mfrac")); 25 assert_equals(style.paddingInlineStart, "1px"); 26 assert_equals(style.paddingInlineEnd, "1px"); 27 }, "Default CSS properties on mfrac"); 28 </script> 29 </body> 30 </html>