tor-browser

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

clamp-length-invalid.html (913B)


      1 <!DOCTYPE html>
      2 <link rel="help" href="https://drafts.csswg.org/css-values-4/#comp-func">
      3 <link rel="author" title="Xiaocheng Hu" href="mailto:xiaochengh@chromium.org">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="../support/parsing-testcommon.js"></script>
      7 <script>
      8 function test_invalid_length(value) {
      9  test_invalid_value('letter-spacing', value);
     10 }
     11 
     12 test_invalid_length('clamp()');
     13 test_invalid_length('clamp( )');
     14 test_invalid_length('clamp(,)');
     15 test_invalid_length('clamp(1px, )');
     16 test_invalid_length('clamp(, 1px)');
     17 test_invalid_length('clamp(1px, 1px)');
     18 test_invalid_length('clamp(1px, , 1px)');
     19 test_invalid_length('clamp(, 1px, 1px)');
     20 test_invalid_length('clamp(1px, 1px, )');
     21 test_invalid_length('clamp(1px, 1px, 1px, )');
     22 test_invalid_length('clamp(1px 1px 1px)');
     23 test_invalid_length('clamp(0, 10rem, 100%)');
     24 </script>