wpt / css / css-overflow / parsing / text-overflow-valid.html

Status: PASS | Duration: 55ms | Subtests: 5/5 | 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['text-overflow'] = "clip" should set the property valuePASS
e.style['text-overflow'] = "ellipsis" should set the property valuePASS
e.style['text-overflow'] = "\"\"" should set the property valuePASS
e.style['text-overflow'] = "\"-\"" should set the property valuePASS
e.style['text-overflow'] = "\"marker string\"" should set the property valuePASS

/css/css-overflow/parsing/text-overflow-valid.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Overflow: parsing text-overflow with valid values</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow/#propdef-text-overflow">
<meta name="assert" content="text-overflow supports the full grammar 'clip | 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_valid_value("text-overflow", 'clip');
test_valid_value("text-overflow", 'ellipsis');

// <string>
test_valid_value("text-overflow", `""`);
test_valid_value("text-overflow", `"-"`);
test_valid_value("text-overflow", `"marker string"`);
</script>
</body>
</html>