text-spacing-valid.html (1480B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Text Module Test: parsing text-spacing with valid values</title> 6 <link rel="help" href="https://drafts.csswg.org/css-text-4/#text-spacing-property"> 7 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharnessreport.js"></script> 9 <script src="/css/support/parsing-testcommon.js"></script> 10 </head> 11 <body> 12 <script> 13 test_valid_value("text-spacing", "normal"); 14 test_valid_value("text-spacing", "none"); 15 test_valid_value("text-spacing", "auto"); 16 17 // `text-autospace`. 18 test_valid_value("text-spacing", "no-autospace"); 19 20 // `text-spacing-trim`. 21 test_valid_value("text-spacing", "trim-start"); 22 test_valid_value("text-spacing", "space-all"); 23 24 // `text-autospace` and `text-spacing-trim`. 25 test_valid_value("text-spacing", "normal normal", "normal"); 26 test_valid_value("text-spacing", "normal trim-start", "trim-start"); 27 test_valid_value("text-spacing", "no-autospace normal", "no-autospace"); 28 test_valid_value("text-spacing", "no-autospace space-all", "none"); 29 test_valid_value("text-spacing", "no-autospace trim-start", "trim-start no-autospace"); 30 // Test the reversed order. 31 test_valid_value("text-spacing", "trim-start normal ", "trim-start"); 32 test_valid_value("text-spacing", "normal no-autospace", "no-autospace"); 33 test_valid_value("text-spacing", "space-all no-autospace", "none"); 34 test_valid_value("text-spacing", "trim-start no-autospace", "trim-start no-autospace"); 35 </script> 36 </body> 37 </html>