wpt / css / css-ruby / parsing / ruby-overhang-invalid.html

Status: PASS | Duration: 55ms | 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['ruby-overhang'] = "auto none" should not set the property valuePASS
e.style['ruby-overhang'] = "none auto" should not set the property valuePASS
e.style['ruby-overhang'] = "auto auto" should not set the property valuePASS
e.style['ruby-overhang'] = "none none" should not set the property valuePASS
e.style['ruby-overhang'] = "auto 2px" should not set the property valuePASS
e.style['ruby-overhang'] = "none 2px" should not set the property valuePASS
e.style['ruby-overhang'] = "simple" should not set the property valuePASS
e.style['ruby-overhang'] = "auto spaces" should not set the property valuePASS
e.style['ruby-overhang'] = "spaces auto" should not set the property valuePASS
e.style['ruby-overhang'] = "none spaces" should not set the property valuePASS
e.style['ruby-overhang'] = "spaces none" should not set the property valuePASS

/css/css-ruby/parsing/ruby-overhang-invalid.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Ruby Layout: parsing ruby-overhang with invalid values</title>
<link rel="help" href="https://drafts.csswg.org/css-ruby-1/#propdef-ruby-overhang">
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m">
<meta name="assert" content="ruby-overhang only supports the grammar 'auto | spaces | none'.">
<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("ruby-overhang", "auto none");
test_invalid_value("ruby-overhang", "none auto");
test_invalid_value("ruby-overhang", "auto auto");
test_invalid_value("ruby-overhang", "none none");
test_invalid_value("ruby-overhang", "auto 2px");
test_invalid_value("ruby-overhang", "none 2px");
test_invalid_value("ruby-overhang", "simple");
test_invalid_value("ruby-overhang", "auto spaces");
test_invalid_value("ruby-overhang", "spaces auto");
test_invalid_value("ruby-overhang", "none spaces");
test_invalid_value("ruby-overhang", "spaces none");
</script>
</body>
</html>