wpt / css / css-backgrounds / parsing / border-image-slice-computed.html

Status: FAIL | Duration: 50ms | Subtests: 5/7 | 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 border-image-slice value '1'PASS
Property border-image-slice value '1 2%'PASS
Property border-image-slice value '1 2% 3'PASS
Property border-image-slice value '1 2% 3 4%'PASS
Property border-image-slice value '1% 2 3% 4 fill'PASS
Property border-image-slice value 'calc(10 + (sign(2cqw - 10px) * 5))'FAILassert_true: 'calc(10 + (sign(2cqw - 10px) * 5))' is a supported value for border-image-slice. expected true got false
Property border-image-slice value 'calc(10 + (sign(2cqw - 10px) * 5)) calc(20% + (sign(2cqw - 10px) * 5%))'FAILassert_true: 'calc(10 + (sign(2cqw - 10px) * 5)) calc(20% + (sign(2cqw - 10px) * 5%))' is a supported value for border-image-slice. expected true got false

/css/css-backgrounds/parsing/border-image-slice-computed.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Backgrounds and Borders: getComputedStyle().borderImageSlice</title>
<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-image-slice">
<meta name="assert" content="border-image-slice computed value is four values, each either a number or percentage; plus a fill keyword if specified.">
<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;
  }
</style>
</head>
<body>
<div id="container">
  <div id="target"></div>
</div>
<script>

test_computed_value("border-image-slice", "1");
test_computed_value("border-image-slice", "1 2%");
test_computed_value("border-image-slice", "1 2% 3");
test_computed_value("border-image-slice", "1 2% 3 4%");

test_computed_value("border-image-slice", "1% 2 3% 4 fill");

test_computed_value("border-image-slice", 'calc(10 + (sign(2cqw - 10px) * 5))', '5');
test_computed_value("border-image-slice", 'calc(10 + (sign(2cqw - 10px) * 5)) calc(20% + (sign(2cqw - 10px) * 5%))', '5 15%');
</script>
</body>
</html>