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

Status: PASS | Duration: 57ms | Subtests: 25/25 | 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-edge'] = "none" should not set the property valuePASS
e.style['text-box-edge'] = "normal" should not set the property valuePASS
e.style['text-box-edge'] = "leading" should not set the property valuePASS
e.style['text-box-edge'] = "auto leading" should not set the property valuePASS
e.style['text-box-edge'] = "leading auto" should not set the property valuePASS
e.style['text-box-edge'] = "normal text" should not set the property valuePASS
e.style['text-box-edge'] = "text none" should not set the property valuePASS
e.style['text-box-edge'] = "leading leading" should not set the property valuePASS
e.style['text-box-edge'] = "leading text" should not set the property valuePASS
e.style['text-box-edge'] = "leading cap" should not set the property valuePASS
e.style['text-box-edge'] = "leading ex" should not set the property valuePASS
e.style['text-box-edge'] = "leading ideographic" should not set the property valuePASS
e.style['text-box-edge'] = "leading ideographic-ink" should not set the property valuePASS
e.style['text-box-edge'] = "text leading" should not set the property valuePASS
e.style['text-box-edge'] = "cap leading" should not set the property valuePASS
e.style['text-box-edge'] = "ex leading" should not set the property valuePASS
e.style['text-box-edge'] = "ideographic leading" should not set the property valuePASS
e.style['text-box-edge'] = "ideographic-ink leading" should not set the property valuePASS
e.style['text-box-edge'] = "alphabetic text" should not set the property valuePASS
e.style['text-box-edge'] = "text cap" should not set the property valuePASS
e.style['text-box-edge'] = "text ex" should not set the property valuePASS
e.style['text-box-edge'] = "auto auto" should not set the property valuePASS
e.style['text-box-edge'] = "auto text" should not set the property valuePASS
e.style['text-box-edge'] = "text auto" should not set the property valuePASS
e.style['text-box-edge'] = "text text text" should not set the property valuePASS

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

<!DOCTYPE html>
<title>text-box-edge rejects invalid values</title>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-edges">
<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-edge', 'none');
test_invalid_value('text-box-edge', 'normal');
test_invalid_value('text-box-edge', 'leading');
test_invalid_value('text-box-edge', 'auto leading');
test_invalid_value('text-box-edge', 'leading auto');
test_invalid_value('text-box-edge', 'normal text');
test_invalid_value('text-box-edge', 'text none');

test_invalid_value('text-box-edge', 'leading leading');
test_invalid_value('text-box-edge', 'leading text');
test_invalid_value('text-box-edge', 'leading cap');
test_invalid_value('text-box-edge', 'leading ex');
test_invalid_value('text-box-edge', 'leading ideographic');
test_invalid_value('text-box-edge', 'leading ideographic-ink');

test_invalid_value('text-box-edge', 'text leading');
test_invalid_value('text-box-edge', 'cap leading');
test_invalid_value('text-box-edge', 'ex leading');
test_invalid_value('text-box-edge', 'ideographic leading');
test_invalid_value('text-box-edge', 'ideographic-ink leading');

// invalid grammar
test_invalid_value('text-box-edge', 'alphabetic text');
test_invalid_value('text-box-edge', 'text cap');
test_invalid_value('text-box-edge', 'text ex');
test_invalid_value('text-box-edge', 'auto auto');
test_invalid_value('text-box-edge', 'auto text');
test_invalid_value('text-box-edge', 'text auto');
test_invalid_value('text-box-edge', 'text text text');
</script>