text-transform-invalid.html (1956B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Text Module Test: parsing text-transform with invalid values</title> 6 <link rel="help" href="https://www.w3.org/TR/css-text-3/#propdef-text-transform"> 7 <link rel="help" href="https://w3c.github.io/mathml-core/#math-auto-transform"> 8 <meta name="assert" content="text-transform supports only the grammar 'none | [capitalize | uppercase | lowercase ] || full-width || full-size-kana | math-auto'."> 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_invalid_value("text-transform", "none full-width"); 16 test_invalid_value("text-transform", "capitalize none"); 17 18 test_invalid_value("text-transform", "capitalize full-width lowercase"); 19 test_invalid_value("text-transform", "uppercase full-size-kana uppercase"); 20 test_invalid_value("text-transform", "full-width full-size-kana full-width"); 21 test_invalid_value("text-transform", "full-size-kana capitalize full-size-kana"); 22 23 24 // math-auto keyword cannot be combined with other values. 25 test_invalid_value("text-transform", "none math-auto"); 26 test_invalid_value("text-transform", "math-auto none"); 27 test_invalid_value("text-transform", "uppercase math-auto"); 28 test_invalid_value("text-transform", "math-auto uppercase"); 29 test_invalid_value("text-transform", "lowercase math-auto"); 30 test_invalid_value("text-transform", "math-auto lowercase"); 31 test_invalid_value("text-transform", "capitalize math-auto"); 32 test_invalid_value("text-transform", "math-auto capitalize"); 33 test_invalid_value("text-transform", "full-width math-auto"); 34 test_invalid_value("text-transform", "math-auto full-width"); 35 test_invalid_value("text-transform", "full-size-kana math-auto"); 36 test_invalid_value("text-transform", "math-auto full-size-kana"); 37 test_invalid_value("text-transform", "math-auto math-auto"); 38 </script> 39 </body> 40 </html>