tor-browser

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

embed-dimension.html (928B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>HTML Test: dimension</title>
      4 <link rel="author" title="Intel" href="http://www.intel.com">
      5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-embed-element">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <div id="log"></div>
      9 <embed src="/images/blue.png" height="100" width="100" id="test">
     10 <script>
     11  test(function () {
     12    var height = getComputedStyle(document.getElementById("test"))["height"];
     13    assert_equals(height, "100px", "The height of the embed element should be 100px.");
     14  }, "Check the actual length of the embed element's height");
     15 
     16  test(function () {
     17    var width = getComputedStyle(document.getElementById("test"))["width"];
     18    assert_equals(width, "100px", "The width of the embed element should be 100px.");
     19  }, "Check the actual length of the embed element's width");
     20 </script>