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

Status: FAIL | Duration: 73ms | Subtests: 0/38 | 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
Property text-box value 'normal'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'none'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'none auto'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'auto none'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'auto'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'trim-start'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'trim-end'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'trim-both'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'text'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'ideographic'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'cap alphabetic'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'text alphabetic'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'trim-start auto'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'trim-both auto'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'auto trim-both'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'none text'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'text text none'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'none cap text'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'cap alphabetic none'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'ideographic none'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'trim-both text'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'trim-start text'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'text text trim-both'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'text text trim-end'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'cap alphabetic trim-start'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'trim-start cap alphabetic'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'trim-both cap alphabetic'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'trim-start ideographic ideographic'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'trim-start ideographic-ink ideographic-ink'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'trim-end cap text'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'trim-end ex text'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'trim-end text alphabetic'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'cap text trim-end'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'ex text trim-end'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'text alphabetic trim-end'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'cap text trim-both'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'ex text trim-both'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false
Property text-box value 'text alphabetic trim-both'FAILassert_true: text-box doesn't seem to be supported in the computed style expected true got false

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

<!DOCTYPE html>
<title>text-box getComputedStyle() returns correctly resolved 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/computed-testcommon.js"></script>
<div id="target"></div>
<script>
// initial values
test_computed_value('text-box', 'normal');
test_computed_value('text-box', 'none', 'normal');
test_computed_value('text-box', 'none auto', 'normal');
test_computed_value('text-box', 'auto none', 'normal');
test_computed_value('text-box', 'auto', 'trim-both');

// `<text-box-trim>`: `none | trim-start | trim-end | trim-both`
test_computed_value('text-box', 'trim-start');
test_computed_value('text-box', 'trim-end');
test_computed_value('text-box', 'trim-both');

// `<text-edge>`
test_computed_value('text-box', 'text');
test_computed_value('text-box', 'ideographic');
test_computed_value('text-box', 'cap alphabetic');
test_computed_value('text-box', 'text alphabetic', 'alphabetic');

// Mix initial and non-initial values
test_computed_value('text-box', 'trim-start auto', 'trim-start');
test_computed_value('text-box', 'trim-both auto', 'trim-both');
test_computed_value('text-box', 'auto trim-both', 'trim-both');
test_computed_value('text-box', 'none text', 'none text');
test_computed_value('text-box', 'text text none', 'none text');
test_computed_value('text-box', 'none cap text', 'none cap');
test_computed_value('text-box', 'cap alphabetic none', 'none cap alphabetic');
test_computed_value('text-box', 'ideographic none', 'none ideographic');

// Both `<text-box-trim>` and `<text-box-edge>`
test_computed_value('text-box', 'trim-both text', 'text');
test_computed_value('text-box', 'trim-start text');
test_computed_value('text-box', 'text text trim-both', 'text');
test_computed_value('text-box', 'text text trim-end', 'trim-end text');
test_computed_value('text-box', 'cap alphabetic trim-start', 'trim-start cap alphabetic');
test_computed_value('text-box', 'trim-start cap alphabetic');
test_computed_value('text-box', 'trim-both cap alphabetic', 'cap alphabetic');
test_computed_value('text-box', 'trim-start ideographic ideographic', 'trim-start ideographic');
test_computed_value('text-box', 'trim-start ideographic-ink ideographic-ink', 'trim-start ideographic-ink');
test_computed_value('text-box', 'trim-end cap text', 'trim-end cap');
test_computed_value('text-box', 'trim-end ex text', 'trim-end ex');
test_computed_value('text-box', 'trim-end text alphabetic', 'trim-end alphabetic');
test_computed_value('text-box', 'cap text trim-end', 'trim-end cap');
test_computed_value('text-box', 'ex text trim-end', 'trim-end ex');
test_computed_value('text-box', 'text alphabetic trim-end', 'trim-end alphabetic');
test_computed_value('text-box', 'cap text trim-both', 'cap');
test_computed_value('text-box', 'ex text trim-both', 'ex');
test_computed_value('text-box', 'text alphabetic trim-both', 'alphabetic');
</script>