wpt / css / css-backgrounds / parsing / background-clip-valid.html

Status: FAIL | Duration: 59ms | Subtests: 3/9 | 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['background-clip'] = "border-box" should set the property valuePASS
e.style['background-clip'] = "padding-box" should set the property valuePASS
e.style['background-clip'] = "content-box" should set the property valuePASS
e.style['background-clip'] = "border-area" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['background-clip'] = "text" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['background-clip'] = "border-area text" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['background-clip'] = "text border-area" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['background-clip'] = "border-box, padding-box, content-box, border-area" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['background-clip'] = "border-area text, content-box" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""

/css/css-backgrounds/parsing/background-clip-valid.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Backgrounds and Borders Module Level 3: parsing background-clip with valid values</title>
<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#background-clip">
<meta name="assert" content="background-clip supports the full grammar '<box>#'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
test_valid_value("background-clip", "border-box");
test_valid_value("background-clip", "padding-box");
test_valid_value("background-clip", "content-box");
test_valid_value("background-clip", "border-area");
test_valid_value("background-clip", "text");
test_valid_value("background-clip", "border-area text");
test_valid_value("background-clip", "text border-area", "border-area text");

test_valid_value("background-clip", "border-box, padding-box, content-box, border-area");
test_valid_value("background-clip", "border-area text, content-box");
</script>
</body>
</html>