tor-browser

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

background-size-valid.html (1153B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Backgrounds and Borders Module Level 3: parsing background-size with valid values</title>
      6 <link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
      7 <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#background-size">
      8 <meta name="assert" content="background-size supports the full grammar '<bg-size>#'.">
      9 <script src="/resources/testharness.js"></script>
     10 <script src="/resources/testharnessreport.js"></script>
     11 <script src="/css/support/parsing-testcommon.js"></script>
     12 </head>
     13 <body>
     14 <script>
     15 test_valid_value("background-size", "1px", ["1px", "1px auto"]);
     16 test_valid_value("background-size", "1px auto", ["1px", "1px auto"]);
     17 test_valid_value("background-size", "2% 3%");
     18 test_valid_value("background-size", "auto", ["auto", "auto auto"]);
     19 test_valid_value("background-size", "auto auto", ["auto", "auto auto"]);
     20 test_valid_value("background-size", "auto 4%");
     21 test_valid_value("background-size", "contain");
     22 test_valid_value("background-size", "cover");
     23 
     24 test_valid_value("background-size", "auto 1px, 2% 3%, contain");
     25 </script>
     26 </body>
     27 </html>