diff options
Diffstat (limited to 'tests/wpt/tests/css/css-inline/text-box-trim/parsing/text-box-edge-valid.html')
-rw-r--r-- | tests/wpt/tests/css/css-inline/text-box-trim/parsing/text-box-edge-valid.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/wpt/tests/css/css-inline/text-box-trim/parsing/text-box-edge-valid.html b/tests/wpt/tests/css/css-inline/text-box-trim/parsing/text-box-edge-valid.html new file mode 100644 index 00000000000..27917c02922 --- /dev/null +++ b/tests/wpt/tests/css/css-inline/text-box-trim/parsing/text-box-edge-valid.html @@ -0,0 +1,40 @@ +<!DOCTYPE html> +<title>text-box-edge parses valid values according to its grammar</title> +<link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-edges"> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/css/support/parsing-testcommon.js"></script> + +<script> +test_valid_value('text-box-edge', 'auto'); +test_valid_value('text-box-edge', 'text'); +test_valid_value('text-box-edge', 'cap'); +test_valid_value('text-box-edge', 'ex'); +test_valid_value('text-box-edge', 'ideographic'); +test_valid_value('text-box-edge', 'ideographic-ink'); + +test_valid_value('text-box-edge', 'text text', 'text'); +test_valid_value('text-box-edge', 'text alphabetic'); +test_valid_value('text-box-edge', 'text ideographic'); +test_valid_value('text-box-edge', 'text ideographic-ink'); + +test_valid_value('text-box-edge', 'cap text', 'cap'); +test_valid_value('text-box-edge', 'cap alphabetic'); +test_valid_value('text-box-edge', 'cap ideographic'); +test_valid_value('text-box-edge', 'cap ideographic-ink'); + +test_valid_value('text-box-edge', 'ex text', 'ex'); +test_valid_value('text-box-edge', 'ex alphabetic'); +test_valid_value('text-box-edge', 'ex ideographic'); +test_valid_value('text-box-edge', 'ex ideographic-ink'); + +test_valid_value('text-box-edge', 'ideographic text'); +test_valid_value('text-box-edge', 'ideographic alphabetic'); +test_valid_value('text-box-edge', 'ideographic ideographic', 'ideographic'); +test_valid_value('text-box-edge', 'ideographic ideographic-ink'); + +test_valid_value('text-box-edge', 'ideographic-ink text'); +test_valid_value('text-box-edge', 'ideographic-ink alphabetic'); +test_valid_value('text-box-edge', 'ideographic-ink ideographic'); +test_valid_value('text-box-edge', 'ideographic-ink ideographic-ink', 'ideographic-ink'); +</script> |