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

Status: PASS | Duration: 57ms | Subtests: 11/11 | 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['block-ellipsis'] = "hidden" should not set the property valuePASS
e.style['block-ellipsis'] = "none" should not set the property valuePASS
e.style['block-ellipsis'] = "auto" should not set the property valuePASS
e.style['block-ellipsis'] = "none auto" should not set the property valuePASS
e.style['block-ellipsis'] = "no-ellipsis auto" should not set the property valuePASS
e.style['block-ellipsis'] = "ellipsis auto" should not set the property valuePASS
e.style['block-ellipsis'] = "auto \"string\"" should not set the property valuePASS
e.style['block-ellipsis'] = "ellipsis \"string\"" should not set the property valuePASS
e.style['block-ellipsis'] = "\"string\" none" should not set the property valuePASS
e.style['block-ellipsis'] = "\"string\" no-ellipsis" should not set the property valuePASS
e.style['block-ellipsis'] = "\"first\" \"second\"" should not set the property valuePASS

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

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

test_invalid_value("block-ellipsis", 'none auto');
test_invalid_value("block-ellipsis", 'no-ellipsis auto');
test_invalid_value("block-ellipsis", 'ellipsis auto');
test_invalid_value("block-ellipsis", 'auto "string"');
test_invalid_value("block-ellipsis", 'ellipsis "string"');
test_invalid_value("block-ellipsis", '"string" none');
test_invalid_value("block-ellipsis", '"string" no-ellipsis');
test_invalid_value("block-ellipsis", '"first" "second"');
</script>
</body>
</html>