wpt / css / css-text / parsing / text-spacing-trim-invalid.html

Status: PASS | Duration: 57ms | Subtests: 9/9 | Open test on wpt.live | wpt.fyi

Data from commit:
a50cb89 wpt: run reference-named files which are themselves tests (#836) (2026-09-03)

SubtestStatusMessage
e.style['text-spacing-trim'] = "none" should not set the property valuePASS
e.style['text-spacing-trim'] = "normal space-all" should not set the property valuePASS
e.style['text-spacing-trim'] = "normal space-first" should not set the property valuePASS
e.style['text-spacing-trim'] = "auto space-all" should not set the property valuePASS
e.style['text-spacing-trim'] = "auto space-first" should not set the property valuePASS
e.style['text-spacing-trim'] = "allow-end" should not set the property valuePASS
e.style['text-spacing-trim'] = "trim-auto" should not set the property valuePASS
e.style['text-spacing-trim'] = "allow-end space-first" should not set the property valuePASS
e.style['text-spacing-trim'] = "space-first allow-end" should not set the property valuePASS

/css/css-text/parsing/text-spacing-trim-invalid.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Text Module Test: parsing text-spacing-trim with invalid values</title>
<link rel="help" href="https://drafts.csswg.org/css-text-4/#text-spacing-trim-property">
<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-spacing-trim", "none");
test_invalid_value("text-spacing-trim", "normal space-all");
test_invalid_value("text-spacing-trim", "normal space-first");
test_invalid_value("text-spacing-trim", "auto space-all");
test_invalid_value("text-spacing-trim", "auto space-first");
test_invalid_value("text-spacing-trim", "allow-end");
test_invalid_value("text-spacing-trim", "trim-auto");
test_invalid_value("text-spacing-trim", "allow-end space-first");
test_invalid_value("text-spacing-trim", "space-first allow-end");
</script>
</body>
</html>