tor-browser

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

computed-size-reporting.html (523B)


      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    border: 20px solid gold;
     11  }
     12 
     13 </style>
     14 
     15 <div id="borderBox"></div>
     16 <p id="heightWidth1"></p>
     17 
     18 <script>
     19  var divs = document.getElementsByTagName("div");
     20  var textEle1 = document.getElementById("heightWidth1");
     21  textEle1.innerHTML += "height = " + getComputedStyle(divs[0]).height;
     22  textEle1.innerHTML += ", width = " + getComputedStyle(divs[0]).width;
     23 </script>