wpt / css / css-overflow / parsing / overflow-invalid.html

Status: PASS | Duration: 50ms | Subtests: 6/6 | 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['overflow'] = "none" should not set the property valuePASS
e.style['overflow'] = "visible clip auto" should not set the property valuePASS
e.style['overflow-x'] = "visible clip" should not set the property valuePASS
e.style['overflow-y'] = "clip hidden" should not set the property valuePASS
e.style['overflow-block'] = "hidden scroll" should not set the property valuePASS
e.style['overflow-inline'] = "scroll auto" should not set the property valuePASS

/css/css-overflow/parsing/overflow-invalid.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Overflow: parsing overflow with invalid values</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow/#propdef-overflow">
<meta name="assert" content="overflow supports only the grammar '[ visible | hidden | clip | scroll | auto ]{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>
test_invalid_value("overflow", 'none');
test_invalid_value("overflow", 'visible clip auto');


test_invalid_value("overflow-x", 'visible clip');
test_invalid_value("overflow-y", 'clip hidden');
test_invalid_value("overflow-block", 'hidden scroll');
test_invalid_value("overflow-inline", 'scroll auto');
</script>
</body>
</html>