text-wrap-valid.html (1690B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Text Module Test: parsing text-wrap with valid values</title> 6 <link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> 7 <link rel="help" href="https://drafts.csswg.org/css-text-4/#text-wrap"> 8 <meta name="assert" content="text-wrap supports the full grammar '<text-wrap-mode> || <text-wrap-style>'."> 9 <script src="/resources/testharness.js"></script> 10 <script src="/resources/testharnessreport.js"></script> 11 <script src="/css/support/parsing-testcommon.js"></script> 12 </head> 13 <body> 14 <script> 15 test_valid_value("text-wrap", "wrap"); 16 test_valid_value("text-wrap", "nowrap"); 17 18 test_valid_value("text-wrap", "auto", "wrap"); 19 test_valid_value("text-wrap", "balance"); 20 test_valid_value("text-wrap", "stable"); 21 22 test_valid_value("text-wrap", "wrap auto", "wrap"); 23 test_valid_value("text-wrap", "wrap balance", "balance"); 24 test_valid_value("text-wrap", "wrap stable", "stable"); 25 test_valid_value("text-wrap", "auto wrap", "wrap"); 26 test_valid_value("text-wrap", "balance wrap", "balance"); 27 test_valid_value("text-wrap", "stable wrap", "stable"); 28 29 test_valid_value("text-wrap", "nowrap auto", "nowrap"); 30 test_valid_value("text-wrap", "nowrap balance"); 31 test_valid_value("text-wrap", "nowrap stable"); 32 test_valid_value("text-wrap", "auto nowrap", "nowrap"); 33 test_valid_value("text-wrap", "balance nowrap", "nowrap balance"); 34 test_valid_value("text-wrap", "stable nowrap", "nowrap stable"); 35 36 test_valid_value("text-wrap", "initial"); 37 test_valid_value("text-wrap", "inherit"); 38 test_valid_value("text-wrap", "unset"); 39 test_valid_value("text-wrap", "revert"); 40 test_valid_value("text-wrap", "revert-layer"); 41 </script> 42 </body> 43 </html>