wpt / css / css-text / parsing / tab-size-computed.html

Status: FAIL | Duration: 114ms | Subtests: 8/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 tab-size value '0'PASS
Property tab-size value '16'PASS
Property tab-size value '4'PASS
Property tab-size value '2.5'PASS
Property tab-size value 'calc(10 + (sign(2cqw - 10px) * 5))'FAILassert_true: 'calc(10 + (sign(2cqw - 10px) * 5))' is a supported value for tab-size. expected true got false
Property tab-size value '0px'PASS
Property tab-size value '10px'PASS
Property tab-size value 'calc(10px + 0.5em)'PASS
Property tab-size value 'calc(10px - 0.5em)'PASS
Property tab-size value 'calc(10px + (sign(2cqw - 10px) * 5px))'FAILassert_true: 'calc(10px + (sign(2cqw - 10px) * 5px))' is a supported value for tab-size. expected true got false

/css/css-text/parsing/tab-size-computed.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Text: getComputedStyle().tabSize</title>
<link rel="help" href="https://www.w3.org/TR/css-text-3/#propdef-tab-size">
<meta name="assert" content="tab-size computed value is the specified number or an absolute length.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<style>
  #container {
    container-type: inline-size;
    width: 100px;
  }
  #target {
    font-size: 40px;
  }
</style>
</head>
<body>
<div id="container">
  <div id="target"></div>
</div>
<script>
test_computed_value("tab-size", "0");
test_computed_value("tab-size", "16");
test_computed_value("tab-size", "4");
test_computed_value("tab-size", "2.5");
test_computed_value("tab-size", 'calc(10 + (sign(2cqw - 10px) * 5))', '5');

test_computed_value("tab-size", "0px");
test_computed_value("tab-size", "10px");
test_computed_value("tab-size", "calc(10px + 0.5em)", "30px");
test_computed_value("tab-size", "calc(10px - 0.5em)", "0px");
test_computed_value("tab-size", 'calc(10px + (sign(2cqw - 10px) * 5px))', '5px');
</script>
</body>
</html>