Status: PASS | Duration: 96ms | Subtests: 16/16 | 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['zoom'] = "normal" should set the property value | PASS | |
| e.style['zoom'] = "1" should set the property value | PASS | |
| e.style['zoom'] = "100%" should set the property value | PASS | |
| e.style['zoom'] = "0" should set the property value | PASS | |
| e.style['zoom'] = "0%" should set the property value | PASS | |
| e.style['zoom'] = "1.5" should set the property value | PASS | |
| e.style['zoom'] = "150%" should set the property value | PASS | |
| e.style['zoom'] = "75%" should set the property value | PASS | |
| e.style['zoom'] = "0.5" should set the property value | PASS | |
| e.style['zoom'] = "auto" should not set the property value | PASS | |
| e.style['zoom'] = "reset" should not set the property value | PASS | |
| e.style['zoom'] = "document" should not set the property value | PASS | |
| e.style['zoom'] = "-100%" should not set the property value | PASS | |
| e.style['zoom'] = "-200%" should not set the property value | PASS | |
| e.style['zoom'] = "-1" should not set the property value | PASS | |
| e.style['zoom'] = "-2" should not set the property value | PASS |
/css/css-viewport/zoom/parsing/zoom-valid.html
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Test: parsing zoom with valid and invalid values</title> <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> <link rel="author" title="Mozilla" href="https://mozilla.com"> <link rel="help" href="https://drafts.csswg.org/css-viewport/#zoom-property"> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="/css/support/parsing-testcommon.js"></script> <body> <script> test_valid_value("zoom", "normal"); test_valid_value("zoom", "1"); test_valid_value("zoom", "100%"); test_valid_value("zoom", "0"); test_valid_value("zoom", "0%"); test_valid_value("zoom", "1.5"); test_valid_value("zoom", "150%") test_valid_value("zoom", "75%"); test_valid_value("zoom", "0.5"); test_invalid_value("zoom", "auto"); test_invalid_value("zoom", "reset"); test_invalid_value("zoom", "document"); test_invalid_value("zoom", "-100%"); test_invalid_value("zoom", "-200%"); test_invalid_value("zoom", "-1"); test_invalid_value("zoom", "-2"); </script>