tor-browser

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

background-position-x-invalid.html (1152B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Backgrounds and Borders Module Level 4: parsing background-position-x with invalid values</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-backgrounds-4/#propdef-background-position-x">
      7 <meta name="assert" content="background-position-x supports only the grammar '[ center | [ left | right | x-start | x-end ]? <length-percentage>? ]#'.">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="/css/support/parsing-testcommon.js"></script>
     11 </head>
     12 <body>
     13 <script>
     14 test_invalid_value("background-position-x", "top");
     15 test_invalid_value("background-position-x", "bottom");
     16 test_invalid_value("background-position-x", "y-start");
     17 test_invalid_value("background-position-x", "y-end");
     18 test_invalid_value("background-position-x", "center 10px");
     19 test_invalid_value("background-position-x", "20% left");
     20 test_invalid_value("background-position-x", "right left");
     21 test_invalid_value("background-position-x", "x-start center");
     22 test_invalid_value("background-position-x", "left, center right");
     23 </script>
     24 </body>
     25 </html>