tor-browser

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

computed-size-reporting-ref.html (494B)


      1 <!DOCTYPE HTML>
      2 <meta charset=utf-8>
      3 <title>Bug 520992</title>
      4 
      5 <style>
      6  #borderBox {
      7    background:gold;
      8    height:100px;
      9    box-sizing:border-box;
     10  }
     11 
     12 </style>
     13 
     14 <div id="borderBox"></div>
     15 <p id="heightWidth1"></p>
     16 
     17 <script>
     18  var divs = document.getElementsByTagName("div");
     19  var textEle1 = document.getElementById("heightWidth1");
     20  textEle1.innerHTML += "height = " + getComputedStyle(divs[0]).height;
     21  textEle1.innerHTML += ", width = " + getComputedStyle(divs[0]).width;
     22 </script>