Status: PASS | Duration: 68ms | 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)
| Subtest | Status | Message |
|---|---|---|
| e.style['text-fit'] = "larger" should not set the property value | PASS | |
| e.style['text-fit'] = "smaller" should not set the property value | PASS | |
| e.style['text-fit'] = "stretch per-line" should not set the property value | PASS | |
| e.style['text-fit'] = "grow 150% consistent" should not set the property value | PASS | |
| e.style['text-fit'] = "consistent 100%" should not set the property value | PASS | |
| e.style['text-fit'] = "grow consistent 1.0" should not set the property value | PASS |
/css/css-text/parsing/text-fit-invalid.html
<!DOCTYPE html> <title>Parsing text-fit with invalid values</title> <link rel="help" href="https://drafts.csswg.org/css-text-4/#text-fit-property"> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="/css/support/parsing-testcommon.js"></script> <body> <div id="target" style="font-size:20px; line-height:1;"></div> <script> test_invalid_value('text-fit', 'larger'); test_invalid_value('text-fit', 'smaller'); test_invalid_value('text-fit', 'stretch per-line'); test_invalid_value('text-fit', 'grow 150% consistent'); test_invalid_value('text-fit', 'consistent 100%'); test_invalid_value('text-fit', 'grow consistent 1.0'); </script> </body>