tor-browser

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

transform_translate_min.html (1208B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Transforms API Test: transform translate with minimum translation value</title>
      5    <link rel="author" title="Intel" href="http://www.intel.com">
      6    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-property">
      7    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#two-d-transform-functions">
      8    <meta name="flags" content="dom">
      9    <meta name="assert" content="Check if transform sets translate(-INFINITE, -INFINITE),
     10                                 transform property returns initial value.">
     11    <script type="text/javascript" src="/resources/testharness.js"></script>
     12    <script type="text/javascript" src="/resources/testharnessreport.js"></script>
     13 </head>
     14 <body>
     15    <div id="test"></div>
     16    <div id="log"></div>
     17    <script type="text/javascript">
     18    test(function() {
     19        document.getElementById("test").style.transform = "translate(-INFINITE, -INFINITE)";
     20        var value = window.getComputedStyle(document.getElementById("test")).getPropertyValue("transform");
     21        assert_equals(value, "none", "transform property value should be none");
     22    }, "transform_translate_min");
     23    </script>
     24 </body>
     25 </html>