tor-browser

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

object-position-computed.html (1559B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Images Module Level 3 Test: getComputedStyle().objectPosition</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-images-3/#propdef-object-position">
      7 <script src="/resources/testharness.js"></script>
      8 <script src="/resources/testharnessreport.js"></script>
      9 <script src="/css/support/computed-testcommon.js"></script>
     10 </head>
     11 <body>
     12 <div id="target"></div>
     13 <script>
     14 test_computed_value("object-position", "10% center", "10% 50%");
     15 test_computed_value("object-position", "right 30% top 60px", "70% 60px");
     16 test_computed_value("object-position", "-20% -30px");
     17 test_computed_value("object-position", "30px center", "30px 50%");
     18 test_computed_value("object-position", "40px top", "40px 0%");
     19 test_computed_value("object-position", "right 20% bottom 10%", "80% 90%");
     20 test_computed_value("object-position", "right bottom", "100% 100%");
     21 test_computed_value("object-position", "center 50px", "50% 50px");
     22 test_computed_value("object-position", "center bottom", "50% 100%");
     23 test_computed_value("object-position", "left center", "0% 50%");
     24 test_computed_value("object-position", "left bottom", "0% 100%");
     25 test_computed_value("object-position", "right 40%", "100% 40%");
     26 test_computed_value("object-position", "center top", "50% 0%");
     27 test_computed_value("object-position", "center", "50% 50%");
     28 test_computed_value("object-position", "center center", "50% 50%");
     29 test_computed_value("object-position", "right 20px bottom 10px", "calc(100% - 20px) calc(100% - 10px)");
     30 </script>
     31 </body>
     32 </html>