Status: PASS | Duration: 61ms | Subtests: 25/25 | 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['overflow-clip-margin'] = "10px" should set the property value | PASS | |
| e.style['overflow-clip-margin'] = "content-box" should set the property value | PASS | |
| e.style['overflow-clip-margin'] = "content-box 10px" should set the property value | PASS | |
| e.style['overflow-clip-margin'] = "10px content-box" should set the property value | PASS | |
| e.style['overflow-clip-margin'] = "0px content-box" should set the property value | PASS | |
| e.style['overflow-clip-margin'] = "padding-box" should set the property value | PASS | |
| e.style['overflow-clip-margin'] = "padding-box 0px" should set the property value | PASS | |
| e.style['overflow-clip-margin'] = "padding-box 10px" should set the property value | PASS | |
| e.style['overflow-clip-margin'] = "10px padding-box" should set the property value | PASS | |
| e.style['overflow-clip-margin'] = "border-box" should set the property value | PASS | |
| e.style['overflow-clip-margin'] = "border-box 0px" should set the property value | PASS | |
| e.style['overflow-clip-margin'] = "border-box 10px" should set the property value | PASS | |
| e.style['overflow-clip-margin'] = "10px border-box" should set the property value | PASS | |
| e.style['overflow-clip-margin'] = "calc(100px - 50px)" should set the property value | PASS | |
| e.style['overflow-clip-margin'] = "calc(100px - 100px)" should set the property value | PASS | |
| e.style['overflow-clip-margin'] = "calc(0.5em - 100px)" should set the property value | PASS | |
| e.style['overflow-clip-margin'] = "calc(100% - 0.5em)" should not set the property value | PASS | |
| e.style['overflow-clip-margin'] = "calc(100% - 50px)" should not set the property value | PASS | |
| e.style['overflow-clip-margin'] = "padding-box calc(0.5em - 100px)" should set the property value | PASS | |
| e.style['overflow-clip-margin'] = "padding-box calc(100px - 100px)" should set the property value | PASS | |
| e.style['overflow-clip-margin'] = "border-box calc(0.5em - 100px)" should set the property value | PASS | |
| e.style['overflow-clip-margin'] = "border-box calc(0.5em - 100%)" should not set the property value | PASS | |
| e.style['overflow-clip-margin'] = "margin-box" should not set the property value | PASS | |
| e.style['overflow-clip-margin'] = "inset(10px)" should not set the property value | PASS | |
| e.style['overflow-clip-margin'] = "50px 50px" should not set the property value | PASS |
/css/css-overflow/parsing/overflow-clip-margin.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS Overflow: parsing overflow-clip-margin</title> <link rel="help" href="https://drafts.csswg.org/css-overflow/#overflow-clip-margin"> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="/css/support/parsing-testcommon.js"></script> </head> <body> <script> test_valid_value("overflow-clip-margin", '10px', '10px'); test_valid_value("overflow-clip-margin", 'content-box', 'content-box'); test_valid_value("overflow-clip-margin", 'content-box 10px', 'content-box 10px'); test_valid_value("overflow-clip-margin", '10px content-box', 'content-box 10px'); test_valid_value("overflow-clip-margin", '0px content-box', 'content-box'); test_valid_value("overflow-clip-margin", 'padding-box', '0px'); test_valid_value("overflow-clip-margin", 'padding-box 0px', '0px'); test_valid_value("overflow-clip-margin", 'padding-box 10px', '10px'); test_valid_value("overflow-clip-margin", '10px padding-box', '10px'); test_valid_value("overflow-clip-margin", 'border-box', 'border-box'); test_valid_value("overflow-clip-margin", 'border-box 0px', 'border-box'); test_valid_value("overflow-clip-margin", 'border-box 10px', 'border-box 10px'); test_valid_value("overflow-clip-margin", '10px border-box', 'border-box 10px'); test_valid_value("overflow-clip-margin", "calc(100px - 50px)", "calc(50px)"); test_valid_value("overflow-clip-margin", "calc(100px - 100px)", "calc(0px)"); test_valid_value("overflow-clip-margin", "calc(0.5em - 100px)"); test_invalid_value("overflow-clip-margin", "calc(100% - 0.5em)"); test_invalid_value("overflow-clip-margin", "calc(100% - 50px)"); test_valid_value("overflow-clip-margin", 'padding-box calc(0.5em - 100px)', 'calc(0.5em - 100px)'); test_valid_value("overflow-clip-margin", 'padding-box calc(100px - 100px)', 'calc(0px)'); test_valid_value("overflow-clip-margin", 'border-box calc(0.5em - 100px)', 'border-box calc(0.5em - 100px)'); test_invalid_value("overflow-clip-margin", 'border-box calc(0.5em - 100%)'); test_invalid_value("overflow-clip-margin", 'margin-box'); test_invalid_value("overflow-clip-margin", 'inset(10px)'); test_invalid_value("overflow-clip-margin", '50px 50px'); </script> </body> </html>