wpt / css / css-text / parsing / text-fit-computed.html

Status: FAIL | Duration: 73ms | Subtests: 0/10 | 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-fit value 'none'FAILassert_true: text-fit doesn't seem to be supported in the computed style expected true got false
Property text-fit value 'grow'FAILassert_true: text-fit doesn't seem to be supported in the computed style expected true got false
Property text-fit value 'shrink'FAILassert_true: text-fit doesn't seem to be supported in the computed style expected true got false
Property text-fit value 'grow consistent'FAILassert_true: text-fit doesn't seem to be supported in the computed style expected true got false
Property text-fit value 'grow per-line'FAILassert_true: text-fit doesn't seem to be supported in the computed style expected true got false
Property text-fit value 'grow per-line-all'FAILassert_true: text-fit doesn't seem to be supported in the computed style expected true got false
Property text-fit value 'grow per-line 200%'FAILassert_true: text-fit doesn't seem to be supported in the computed style expected true got false
Property text-fit value 'grow consistent 300%'FAILassert_true: text-fit doesn't seem to be supported in the computed style expected true got false
Property text-fit value 'shrink per-line 40%'FAILassert_true: text-fit doesn't seem to be supported in the computed style expected true got false
Property text-fit value 'shrink consistent 20%'FAILassert_true: text-fit doesn't seem to be supported in the computed style expected true got false

/css/css-text/parsing/text-fit-computed.html

<!DOCTYPE html>
<title>getComputedStyle().textFit</title>
<link rel="help" href="https://drafts.csswg.org/css-text-4/#text-fit-property">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<body>
<div id="target" style="font-size:20px; line-height:1;"></div>
<script>
test_computed_value('text-fit', 'none');
test_computed_value('text-fit', 'grow');
test_computed_value('text-fit', 'shrink');

test_computed_value('text-fit', 'grow consistent', 'grow');
test_computed_value('text-fit', 'grow per-line');
test_computed_value('text-fit', 'grow per-line-all');

test_computed_value('text-fit', 'grow per-line 200%');
test_computed_value('text-fit', 'grow consistent 300%', 'grow 300%');

test_computed_value('text-fit', 'shrink per-line 40%', 'shrink per-line 40%');
test_computed_value('text-fit', 'shrink consistent 20%', 'shrink 20%');
</script>
</body>