tor-browser

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

line-clamp-valid.html (1353B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Overflow: parsing line-clamp with valid values</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-overflow-4/#propdef-line-clamp">
      7 <meta name="assert" content="line-clamp supports the full grammar 'none | [<integer [1,∞]> || <‘block-ellipsis’>] -webkit-legacy?'.">
      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_valid_value("line-clamp", 'none');
     15 
     16 test_valid_value("line-clamp", '1');
     17 test_valid_value("line-clamp", '6');
     18 
     19 test_valid_value("line-clamp", 'auto');
     20 test_valid_value("line-clamp", '" etc., etc. "');
     21 
     22 test_valid_value("line-clamp", '7 no-ellipsis');
     23 test_valid_value("line-clamp", '8 auto', '8');
     24 test_valid_value("line-clamp", '9 " etc., etc. "');
     25 
     26 test_valid_value("line-clamp", 'no-ellipsis 10', '10 no-ellipsis');
     27 test_valid_value("line-clamp", 'auto 11', '11');
     28 test_valid_value("line-clamp", '" etc., etc. " 12', '12 " etc., etc. "');
     29 
     30 test_valid_value("line-clamp", '1 -webkit-legacy');
     31 test_valid_value("line-clamp", 'auto -webkit-legacy');
     32 test_valid_value("line-clamp", 'no-ellipsis -webkit-legacy');
     33 test_valid_value("line-clamp", '3 auto -webkit-legacy', '3 -webkit-legacy');
     34 </script>
     35 </body>
     36 </html>