wpt / css / css-logical / parsing / inset-valid.html

Status: PASS | Duration: 51ms | Subtests: 8/8 | 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['inset'] = "auto" should set the property valuePASS
e.style['inset'] = "-10px" should set the property valuePASS
e.style['inset'] = "calc(-0.5em + 10px) -20%" should set the property valuePASS
e.style['inset'] = "auto auto" should set the property valuePASS
e.style['inset'] = "10px calc(-0.5em + 10px) -30px" should set the property valuePASS
e.style['inset'] = "auto auto auto" should set the property valuePASS
e.style['inset'] = "10px calc(-0.5em + 10px) auto -30px" should set the property valuePASS
e.style['inset'] = "auto auto auto auto" should set the property valuePASS

/css/css-logical/parsing/inset-valid.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Logical Properties and Values: parsing inset with valid values</title>
<link rel="help" href="https://drafts.csswg.org/css-logical/#propdef-inset">
<meta name="assert" content="inset supports the full grammar '<'top'>{1,4}'.">
<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("inset", "auto");
test_valid_value("inset", "-10px");

test_valid_value("inset", "calc(-0.5em + 10px) -20%");
test_valid_value("inset", "auto auto", "auto");

test_valid_value("inset", "10px calc(-0.5em + 10px) -30px");
test_valid_value("inset", "auto auto auto", "auto");

test_valid_value("inset", "10px calc(-0.5em + 10px) auto -30px");
test_valid_value("inset", "auto auto auto auto", "auto");
</script>
</body>
</html>