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)
| Subtest | Status | Message |
|---|---|---|
| e.style['hyphenate-limit-chars'] = "normal" should not set the property value | PASS | |
| e.style['hyphenate-limit-chars'] = "1 normal" should not set the property value | PASS | |
| e.style['hyphenate-limit-chars'] = "none" should not set the property value | PASS | |
| e.style['hyphenate-limit-chars'] = "1 none" should not set the property value | PASS | |
| e.style['hyphenate-limit-chars'] = "1.2" should not set the property value | PASS | |
| e.style['hyphenate-limit-chars'] = "1 1.2" should not set the property value | PASS | |
| e.style['hyphenate-limit-chars'] = "1 2 1.2" should not set the property value | PASS | |
| e.style['hyphenate-limit-chars'] = "1 2 3 4" should not set the property value | PASS |
/css/css-text/parsing/hyphenate-limit-chars-invalid.html
<!DOCTYPE html> <title>CSS Text: parsing hyphenate-limit-chars with invalid values</title> <link rel="help" href="https://drafts.csswg.org/css-text-4/#propdef-hyphenate-limit-chars"> <meta name="assert" content="hyphenate-character supports only the grammar '[ auto | <integer> ]{1,3}'."> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="/css/support/parsing-testcommon.js"></script> <script> test_invalid_value("hyphenate-limit-chars", "normal"); test_invalid_value("hyphenate-limit-chars", "1 normal"); test_invalid_value("hyphenate-limit-chars", "none"); test_invalid_value("hyphenate-limit-chars", "1 none"); test_invalid_value("hyphenate-limit-chars", "1.2"); test_invalid_value("hyphenate-limit-chars", "1 1.2"); test_invalid_value("hyphenate-limit-chars", "1 2 1.2"); test_invalid_value("hyphenate-limit-chars", "1 2 3 4"); </script>