tor-browser

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

transform-computed.html (840B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Transform Module Level 1: getComputedStyle().transform</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-transforms-1/#serialization-of-the-computed-value">
      7 <script src="/resources/testharness.js"></script>
      8 <script src="/resources/testharnessreport.js"></script>
      9 <script src="/css/support/computed-testcommon.js"></script>
     10 <style>
     11  #target {
     12    width: 200px;
     13    height: 300px;
     14    font-size: 40px;
     15  }
     16 </style>
     17 </head>
     18 <body>
     19 <div id="target"></div>
     20 <script>
     21 test_computed_value("transform", "perspective(none)", "matrix(1, 0, 0, 1, 0, 0)");
     22 test_computed_value("transform", "perspective(10px)", "matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.1, 0, 0, 0, 1)");
     23 
     24 // FIXME: This needs more tests to cover all the other transform functions.
     25 </script>
     26 </body>
     27 </html>