Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-text/parsing/hyphenate-limit-chars-invalid.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Text: parsing hyphenate-limit-chars with invalid values</title>
<meta name="assert" content="hyphenate-character supports only the grammar '[ auto | <integer> ]{1,3}'.">
<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>