tor-browser

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

minmax-length-percent-invalid.html (1647B)


      1 <!DOCTYPE html>
      2 <link rel="help" href="https://drafts.csswg.org/css-values-4/#comp-func">
      3 <link rel="help" href="https://drafts.csswg.org/css-values-4/#mixed-percentages">
      4 <link rel="help" href="https://drafts.csswg.org/css-values-4/#calc-type-checking">
      5 <link rel="author" title="Xiaocheng Hu" href="mailto:xiaochengh@chromium.org">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <script src="../support/parsing-testcommon.js"></script>
      9 <script>
     10 function test_invalid_length_percent(value) {
     11  test_invalid_value('margin-left', value);
     12 }
     13 
     14 // Type checking only. Syntax checking is done by other test files.
     15 // <length-percentage> accepts mixing lengths and percentages only.
     16 test_invalid_length_percent('min(1px, 0)');
     17 test_invalid_length_percent('min(1px, 0s)');
     18 test_invalid_length_percent('min(1px, 0Hz)');
     19 test_invalid_length_percent('min(1px, 0dpi)');
     20 test_invalid_length_percent('min(1px, 0fr)');
     21 test_invalid_length_percent('min(1%, 0)');
     22 test_invalid_length_percent('min(1%, 0s)');
     23 test_invalid_length_percent('min(1%, 0Hz)');
     24 test_invalid_length_percent('min(1%, 0dpi)');
     25 test_invalid_length_percent('min(1%, 0fr)');
     26 test_invalid_length_percent('max(1px, 0)');
     27 test_invalid_length_percent('max(1px, 0s)');
     28 test_invalid_length_percent('max(1px, 0Hz)');
     29 test_invalid_length_percent('max(1px, 0dpi)');
     30 test_invalid_length_percent('max(1px, 0fr)');
     31 test_invalid_length_percent('max(1%, 0)');
     32 test_invalid_length_percent('max(1%, 0s)');
     33 test_invalid_length_percent('max(1%, 0Hz)');
     34 test_invalid_length_percent('max(1%, 0dpi)');
     35 test_invalid_length_percent('max(1%, 0fr)');
     36 </script>