tor-browser

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

absolute-length-units-001.html (1121B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>absolute length units test</title>
      4 <meta name="author" title="Hwanseung Lee" href="mailto:hs1217.lee@samsung.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-values-3/#absolute-lengths"/>
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <style>
      9    #t1 { width: 96px; height: 2.54cm; }
     10    #t2 { width: 2.54cm; height: 25.4mm; }
     11    #t3 { width: 25.4mm; height: 101.6q; }
     12    #t4 { width: 101.6q; height: 1in; }
     13    #t5 { width: 1in; height: 6pc; }
     14    #t6 { width: 6pc; height: 72pt; }
     15    #t7 { width: 72pt; height: 96px; }
     16 </style>
     17 
     18 <div id="t1"> </div>
     19 <div id="t2"> </div>
     20 <div id="t3"> </div>
     21 <div id="t4"> </div>
     22 <div id="t5"> </div>
     23 <div id="t6"> </div>
     24 <div id="t7"> </div>
     25 
     26 <script>
     27  var test_items = ["t1", "t2", "t3", "t4", "t5", "t6", "t7"]
     28 
     29  for (var i = 0; i < test_items.length; i++) {
     30    test(function(){
     31      var elem = document.getElementById(test_items[i]);
     32      assert_equals(getComputedStyle(elem).width, getComputedStyle(elem).height, elem.id);
     33    }, test_items[i])
     34  }
     35 </script>