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/text-wrap-mode-invalid.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Text Module Test: parsing text-wrap-mode with invalid values</title>
<meta name="assert" content="text-wrap-mode supports only the grammar '<text-wrap-mode>'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
test_invalid_value("text-wrap-mode", "auto");
test_invalid_value("text-wrap-mode", "normal");
test_invalid_value("text-wrap-mode", "none");
test_invalid_value("text-wrap-mode", "balance");
test_invalid_value("text-wrap-mode", "pretty");
test_invalid_value("text-wrap-mode", "stable");
test_invalid_value("text-wrap-mode", "wrap stable");
test_invalid_value("text-wrap-mode", "nowrap stable");
test_invalid_value("text-wrap-mode", "wrap auto");
test_invalid_value("text-wrap-mode", "balance balance");
test_invalid_value("text-wrap-mode", "pretty pretty");
test_invalid_value("text-wrap-mode", "stable stable");
test_invalid_value("text-wrap-mode", "wrap nowrap");
test_invalid_value("text-wrap-mode", "pretty balance");
test_invalid_value("text-wrap-mode", "balance stable");
test_invalid_value("text-wrap-mode", "stable pretty");
test_invalid_value("text-wrap-mode", "delicious wrap");
test_invalid_value("text-wrap-mode", "5px");
</script>
</body>
</html>