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

Status: FAIL | Duration: 61ms | Subtests: 0/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'] = "normal" should set text-box-edgeFAILassert_equals: text-box-edge should be canonical expected "auto" but got ""
e.style['text-box'] = "normal" should set text-box-trimFAILassert_equals: text-box-trim should be canonical expected "none" but got ""
e.style['text-box'] = "normal" should not set unrelated longhandsFAILassert_true: expected true got false
e.style['text-box'] = "none" should set text-box-edgeFAILassert_equals: text-box-edge should be canonical expected "auto" but got ""
e.style['text-box'] = "none" should set text-box-trimFAILassert_equals: text-box-trim should be canonical expected "none" but got ""
e.style['text-box'] = "none" should not set unrelated longhandsFAILassert_true: expected true got false
e.style['text-box'] = "trim-start" should set text-box-edgeFAILassert_equals: text-box-edge should be canonical expected "auto" but got ""
e.style['text-box'] = "trim-start" should set text-box-trimFAILassert_equals: text-box-trim should be canonical expected "trim-start" but got ""
e.style['text-box'] = "trim-start" should not set unrelated longhandsFAILassert_true: expected true got false
e.style['text-box'] = "ex text" should set text-box-edgeFAILassert_equals: text-box-edge should be canonical expected "ex" but got ""
e.style['text-box'] = "ex text" should set text-box-trimFAILassert_equals: text-box-trim should be canonical expected "trim-both" but got ""
e.style['text-box'] = "ex text" should not set unrelated longhandsFAILassert_true: expected true got false
e.style['text-box'] = "cap" should set text-box-edgeFAILassert_equals: text-box-edge should be canonical expected "cap" but got ""
e.style['text-box'] = "cap" should set text-box-trimFAILassert_equals: text-box-trim should be canonical expected "trim-both" but got ""
e.style['text-box'] = "cap" should not set unrelated longhandsFAILassert_true: expected true got false
e.style['text-box'] = "trim-end alphabetic" should set text-box-edgeFAILassert_equals: text-box-edge should be canonical expected "alphabetic" but got ""
e.style['text-box'] = "trim-end alphabetic" should set text-box-trimFAILassert_equals: text-box-trim should be canonical expected "trim-end" but got ""
e.style['text-box'] = "trim-end alphabetic" should not set unrelated longhandsFAILassert_true: expected true got false

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

<!DOCTYPE html>
<title>text-box shorthand defaults omitted values per spec</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/shorthand-testcommon.js"></script>
<script>
test_shorthand_value('text-box', 'normal', {
  'text-box-trim': 'none',
  'text-box-edge': 'auto',
});

test_shorthand_value('text-box', 'none', {
  'text-box-trim': 'none',
  'text-box-edge': 'auto',
});

test_shorthand_value('text-box', 'trim-start', {
  'text-box-trim': 'trim-start',
  'text-box-edge': 'auto',
});

test_shorthand_value('text-box', 'ex text', {
  'text-box-trim': 'trim-both',
  'text-box-edge': 'ex',
});

test_shorthand_value('text-box', 'cap', {
  'text-box-trim': 'trim-both',
  'text-box-edge': 'cap',
});

test_shorthand_value('text-box', 'trim-end alphabetic', {
  'text-box-trim': 'trim-end',
  'text-box-edge': 'alphabetic',
});
</script>