text-wrap-computed.html (1525B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Text: getComputedStyle().textWrap</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 computed value is '<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/computed-testcommon.js"></script> 12 </head> 13 <body> 14 <div id="target"></div> 15 <script> 16 test_computed_value("text-wrap", "wrap"); 17 test_computed_value("text-wrap", "nowrap"); 18 19 test_computed_value("text-wrap", "auto", "wrap"); 20 test_computed_value("text-wrap", "balance"); 21 test_computed_value("text-wrap", "stable"); 22 23 test_computed_value("text-wrap", "wrap auto", "wrap"); 24 test_computed_value("text-wrap", "wrap balance", "balance"); 25 test_computed_value("text-wrap", "wrap stable", "stable"); 26 test_computed_value("text-wrap", "auto wrap", "wrap"); 27 test_computed_value("text-wrap", "balance wrap", "balance"); 28 test_computed_value("text-wrap", "stable wrap", "stable"); 29 30 test_computed_value("text-wrap", "nowrap auto", "nowrap"); 31 test_computed_value("text-wrap", "nowrap balance"); 32 test_computed_value("text-wrap", "nowrap stable"); 33 test_computed_value("text-wrap", "auto nowrap", "nowrap"); 34 test_computed_value("text-wrap", "balance nowrap", "nowrap balance"); 35 test_computed_value("text-wrap", "stable nowrap", "nowrap stable"); 36 </script> 37 </body> 38 </html>