wpt / css / css-align / parsing / justify-self-invalid.html

Status: PASS | Duration: 55ms | Subtests: 17/17 | 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['justify-self'] = "baseline last" should not set the property valuePASS
e.style['justify-self'] = "center baseline" should not set the property valuePASS
e.style['justify-self'] = "first" should not set the property valuePASS
e.style['justify-self'] = "flex-start flex-end" should not set the property valuePASS
e.style['justify-self'] = "last" should not set the property valuePASS
e.style['justify-self'] = "legacy center" should not set the property valuePASS
e.style['justify-self'] = "legacy left" should not set the property valuePASS
e.style['justify-self'] = "legacy" should not set the property valuePASS
e.style['justify-self'] = "normal baseline" should not set the property valuePASS
e.style['justify-self'] = "right legacy" should not set the property valuePASS
e.style['justify-self'] = "safe" should not set the property valuePASS
e.style['justify-self'] = "self-end unsafe" should not set the property valuePASS
e.style['justify-self'] = "space-around" should not set the property valuePASS
e.style['justify-self'] = "space-between" should not set the property valuePASS
e.style['justify-self'] = "space-evenly" should not set the property valuePASS
e.style['justify-self'] = "start safe" should not set the property valuePASS
e.style['justify-self'] = "unsafe" should not set the property valuePASS

/css/css-align/parsing/justify-self-invalid.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Box Alignment Level 3: parsing justify-self with invalid values</title>
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-justify-self">
<meta name="assert" content="justify-self supports only the grammar 'auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
test_invalid_value("justify-self", "baseline last");
test_invalid_value("justify-self", "center baseline");
test_invalid_value("justify-self", "first");
test_invalid_value("justify-self", "flex-start flex-end");
test_invalid_value("justify-self", "last");
test_invalid_value("justify-self", "legacy center");
test_invalid_value("justify-self", "legacy left");
test_invalid_value("justify-self", "legacy");
test_invalid_value("justify-self", "normal baseline");
test_invalid_value("justify-self", "right legacy");
test_invalid_value("justify-self", "safe");
test_invalid_value("justify-self", "self-end unsafe");
test_invalid_value("justify-self", "space-around");
test_invalid_value("justify-self", "space-between");
test_invalid_value("justify-self", "space-evenly");
test_invalid_value("justify-self", "start safe");
test_invalid_value("justify-self", "unsafe");
</script>
</body>
</html>