tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

padding-border-margin-002.html (1369B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8"/>
      5 <title>Padding/border/margin on largeop</title>
      6 <link rel="help" href="https://w3c.github.io/mathml-core/#layout-algorithms">
      7 <link rel="help" href="https://w3c.github.io/mathml-core/#the-math-style-property">
      8 <link rel="help" href="https://w3c.github.io/mathml-core/#layout-of-operators">
      9 <link rel="match" href="padding-border-margin-002-ref.html"/>
     10 <meta name="assert" content="Verify visual rendering of padding/border/margin on a displaystyle mo element with the largeop property.">
     11 <style>
     12  @font-face {
     13    font-family: TestFont;
     14    src: url("/fonts/math/largeop-displayoperatorminheight5000.woff");
     15  }
     16  math  {
     17    /* Largeop variant for U+2AFF has width 100px
     18       and height 300 * 5000 / 1000 = 1500px */
     19    font-family: TestFont;
     20    font-size: 300px;
     21  }
     22 </style>
     23 <body>
     24  <p>This test passes if you see a cyan rectangle of width 300px and
     25    height 1500px, surrounded by a 10px blue padding, surrounded by a 10px
     26    blue/yellow dashed border, itself
     27    surrounded by a 10px pink margin.</p>
     28  <div style="background: pink; position: absolute; left: 10px; top: 4em;">
     29    <math displaystyle="true">
     30      <mo largeop="true" lspace="0" rspace="0" style="background: blue; border: 10px dashed yellow; padding: 10px; margin: 10px; color: cyan;">&#x2AFF;</mo>
     31    </math>
     32  </div>
     33 </body>
     34 </html>