wpt / css / css-logical / parsing / border-block-width-valid.html

Status: PASS | Duration: 50ms | Subtests: 10/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
e.style['border-block-start-width'] = "10px" should set the property valuePASS
e.style['border-block-start-width'] = "calc(10px + 0.5em)" should set the property valuePASS
e.style['border-block-start-width'] = "thick" should set the property valuePASS
e.style['border-block-start-width'] = "thin" should set the property valuePASS
e.style['border-block-end-width'] = "0" should set the property valuePASS
e.style['border-block-end-width'] = "calc(10px - 0.5em)" should set the property valuePASS
e.style['border-block-end-width'] = "medium" should set the property valuePASS
e.style['border-block-width'] = "10px" should set the property valuePASS
e.style['border-block-width'] = "medium calc(10px + 0.5em)" should set the property valuePASS
e.style['border-block-width'] = "10px 10px" should set the property valuePASS

/css/css-logical/parsing/border-block-width-valid.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Logical Properties and Values: parsing border-block-width with valid values</title>
<link rel="help" href="https://drafts.csswg.org/css-logical/#propdef-border-block-width">
<meta name="assert" content="border-block-width supports the full grammar '<line-width>{1,2}'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
// <length> | thin | medium | thick
test_valid_value("border-block-start-width", "10px");
test_valid_value("border-block-start-width", "calc(10px + 0.5em)", "calc(0.5em + 10px)");
test_valid_value("border-block-start-width", "thick");
test_valid_value("border-block-start-width", "thin");
test_valid_value("border-block-end-width", "0", "0px");
test_valid_value("border-block-end-width", "calc(10px - 0.5em)", "calc(-0.5em + 10px)");
test_valid_value("border-block-end-width", "medium");
test_valid_value("border-block-width", "10px");
test_valid_value("border-block-width", "medium calc(10px + 0.5em)", "medium calc(0.5em + 10px)");
test_valid_value("border-block-width", "10px 10px", "10px");
</script>
</body>
</html>