wpt / css / css-inline / text-box-trim / parsing / text-box-invalid.html

Status: PASS | Duration: 54ms | Subtests: 18/18 | 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-box'] = "em" should not set the property valuePASS
e.style['text-box'] = "leading" should not set the property valuePASS
e.style['text-box'] = "trim-both leading" should not set the property valuePASS
e.style['text-box'] = "normal normal" should not set the property valuePASS
e.style['text-box'] = "normal none" should not set the property valuePASS
e.style['text-box'] = "auto normal" should not set the property valuePASS
e.style['text-box'] = "auto auto" should not set the property valuePASS
e.style['text-box'] = "none none" should not set the property valuePASS
e.style['text-box'] = "normal text" should not set the property valuePASS
e.style['text-box'] = "text normal" should not set the property valuePASS
e.style['text-box'] = "text cap" should not set the property valuePASS
e.style['text-box'] = "text ex" should not set the property valuePASS
e.style['text-box'] = "alphabetic text" should not set the property valuePASS
e.style['text-box'] = "alphabetic cap" should not set the property valuePASS
e.style['text-box'] = "cap none alphabetic" should not set the property valuePASS
e.style['text-box'] = "cap trim-both alphabetic" should not set the property valuePASS
e.style['text-box'] = "text none text" should not set the property valuePASS
e.style['text-box'] = "text trim-both text" should not set the property valuePASS

/css/css-inline/text-box-trim/parsing/text-box-invalid.html

<!DOCTYPE html>
<title>text-box rejects invalid values</title>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#propdef-text-box">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>

<script>
// invalid keyword
test_invalid_value('text-box', 'em');
test_invalid_value('text-box', 'leading');
test_invalid_value('text-box', 'trim-both leading');

// invalid grammars
test_invalid_value('text-box', 'normal normal');
test_invalid_value('text-box', 'normal none');
test_invalid_value('text-box', 'auto normal');
test_invalid_value('text-box', 'auto auto');
test_invalid_value('text-box', 'none none');
test_invalid_value('text-box', 'normal text');
test_invalid_value('text-box', 'text normal');
test_invalid_value('text-box', 'text cap');
test_invalid_value('text-box', 'text ex');
test_invalid_value('text-box', 'alphabetic text');
test_invalid_value('text-box', 'alphabetic cap');
test_invalid_value('text-box', 'cap none alphabetic');
test_invalid_value('text-box', 'cap trim-both alphabetic');
test_invalid_value('text-box', 'text none text');
test_invalid_value('text-box', 'text trim-both text');
</script>