tor-browser

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

css-inline-style-dynamic.tentative.html (1456B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <head>
      4    <meta charset="utf-8" />
      5    <title>MathML 'ElementCSSInlineStyle` Dynamic Tests</title>
      6    <link rel="help" href="https://w3c.github.io/mathml-core/#dom-and-javascript"/>
      7    <link rel="match" href="css-inline-style-dynamic.tentative-ref.html"/>
      8    <script src="/mathml/support/feature-detection.js"></script>
      9    <style>
     10      #hidden  {
     11        visibility: hidden;
     12        background-color: green;
     13      }
     14      #red  {
     15        background-color: red;
     16      }
     17    </style>
     18    <meta
     19      name="assert"
     20      content="MathMLElements ElementCSSInlineStyle interface changes update rendering"
     21    />
     22    <script type="text/javascript">
     23      function test()
     24      {
     25        MathMLFeatureDetection.ensure_for_match_reftest("has_mspace");
     26        document.body.offsetTop; // Update layout
     27 
     28        var mspace = document.getElementById("hidden");
     29        if (mspace.style)
     30          mspace.style.visibility = "visible";
     31 
     32        mspace = document.getElementById("red");
     33        if (mspace.style)
     34          mspace.style.backgroundColor = "green";
     35 
     36        document.documentElement.className = "";
     37      }
     38    </script>
     39  </head>
     40  <body onload="test()">
     41    <span>This tests that `ElementCSSInlineStyle` interface changes update rendering.</span>
     42    <div>
     43      <math><mspace width="50px" height="100px" id="hidden"/><mspace width="50px" height="100px" id="red"/></math>
     44    </div>
     45  </body>
     46 </html>