Status: PASS | Duration: 63ms | 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)
| Subtest | Status | Message |
|---|---|---|
| e.style['background-position'] = "left right" should not set the property value | PASS | |
| e.style['background-position'] = "top bottom" should not set the property value | PASS | |
| e.style['background-position'] = "1% center 2px" should not set the property value | PASS | |
| e.style['background-position'] = "right 7% 50%" should not set the property value | PASS | |
| e.style['background-position'] = "50% top 8px" should not set the property value | PASS | |
| e.style['background-position'] = "left 10px 50%" should not set the property value | PASS | |
| e.style['background-position'] = "right 11% 100%" should not set the property value | PASS | |
| e.style['background-position'] = "100% top 14%" should not set the property value | PASS | |
| e.style['background-position'] = "50% top 15px" should not set the property value | PASS | |
| e.style['background-position'] = "0% bottom 16%" should not set the property value | PASS | |
| e.style['background-position'] = "right 19% 100%" should not set the property value | PASS |
/css/css-backgrounds/parsing/background-position-invalid.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS Backgrounds and Borders Module Level 3: parsing background-position with invalid values</title> <link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org"> <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#background-position"> <meta name="assert" content="background-position supports only the grammar '<bg-position>'."> <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("background-position", "left right"); test_invalid_value("background-position", "top bottom"); test_invalid_value("background-position", "1% center 2px"); test_invalid_value("background-position", "right 7% 50%"); test_invalid_value("background-position", "50% top 8px"); test_invalid_value("background-position", "left 10px 50%"); test_invalid_value("background-position", "right 11% 100%"); test_invalid_value("background-position", "100% top 14%"); test_invalid_value("background-position", "50% top 15px"); test_invalid_value("background-position", "0% bottom 16%"); test_invalid_value("background-position", "right 19% 100%"); </script> </body> </html>