summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/parsing/hyphenate-limit-chars-invalid.html
blob: 5a797fa8181d1ca16280067b6ed7031b2796d881 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<title>CSS Text: parsing hyphenate-limit-chars with invalid values</title>
<link rel="help" href="https://w3c.github.io/csswg-drafts/css-text-4/#propdef-hyphenate-limit-chars">
<meta name="assert" content="hyphenate-character supports only the grammar 'none | manual | auto'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
test_invalid_value("hyphenate-limit-chars", "normal");
test_invalid_value("hyphenate-limit-chars", "1 normal");
test_invalid_value("hyphenate-limit-chars", "none");
test_invalid_value("hyphenate-limit-chars", "1 none");
test_invalid_value("hyphenate-limit-chars", "1.2");
test_invalid_value("hyphenate-limit-chars", "1 1.2");
test_invalid_value("hyphenate-limit-chars", "1 2 1.2");
test_invalid_value("hyphenate-limit-chars", "1 2 3 4");
</script>