tor-browser

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

translate-parsing-invalid.html (891B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Transform Module Level 2: parsing translate with invalid values</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-transforms-2/#propdef-translate">
      7 <meta name="assert" content="translate supports only the grammar 'none | <length-percentage> [ <length-percentage> <length>? ]?'.">
      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("translate", "100deg");
     15 
     16 test_invalid_value("translate", "100px 200px 300%");
     17 test_invalid_value("translate", "100px 200px calc(30px + 30%)");
     18 
     19 test_invalid_value("translate", "100px junk");
     20 test_invalid_value("translate", "100px 200px junk");
     21 test_invalid_value("translate", "100px 200px 300px junk");
     22 </script>
     23 </body>
     24 </html>