Update the CSS Text WPT test suite
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / css / css-text / parsing / text-transform-valid.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>CSS Text Module Test: parsing text-transform with valid values</title>
6 <link rel="help" href="https://www.w3.org/TR/css-text-3/#propdef-text-transform">
7 <meta name="assert" content="text-transform supports the full grammar 'none | [capitalize | uppercase | lowercase ] || full-width || full-size-kana'.">
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("text-transform", "none");
15
16 test_valid_value("text-transform", "capitalize");
17 test_valid_value("text-transform", "uppercase");
18 test_valid_value("text-transform", "lowercase");
19 test_valid_value("text-transform", "full-width");
20 test_valid_value("text-transform", "full-size-kana");
21
22 test_valid_value("text-transform", "capitalize full-width");
23 test_valid_value("text-transform", "uppercase full-size-kana");
24 test_valid_value("text-transform", "full-width full-size-kana");
25
26 // serialization canonicalizes the order of values: https://drafts.csswg.org/cssom/#serialize-a-css-value
27 test_valid_value("text-transform", "full-width lowercase", "lowercase full-width");
28 test_valid_value("text-transform", "full-size-kana capitalize", "capitalize full-size-kana");
29 test_valid_value("text-transform", "full-size-kana full-width", "full-width full-size-kana");
30
31 test_valid_value("text-transform", "capitalize full-width full-size-kana");
32
33 // serialization canonicalizes the order of values
34 test_valid_value("text-transform", "full-width full-size-kana uppercase", "uppercase full-width full-size-kana");
35 test_valid_value("text-transform", "full-size-kana lowercase full-width", "lowercase full-width full-size-kana");
36 test_valid_value("text-transform", "lowercase full-size-kana full-width", "lowercase full-width full-size-kana");
37 test_valid_value("text-transform", "full-width uppercase full-size-kana", "uppercase full-width full-size-kana");
38 test_valid_value("text-transform", "full-size-kana full-width capitalize", "capitalize full-width full-size-kana");
39 </script>
40 </body>
41 </html>