Skip to content
Skip the list of specifications

css/css-borders/tentative/parsing/

border-shape-valid.html

Passes: all 12 assertions match

A parsing check: each value the parser must accept or reject.

Run it in the playgroundThe fileOn GitHubBrowsers’ results on wpt.fyi

Each assertion

A passing assertion got what it asked for, so only a failing one shows what it expected and what it got.

AssertionExpectedGotVerdict
e.style['border-shape'] = "none" should set the property valuePasses
e.style['border-shape'] = "circle()" should set the property valuePasses
e.style['border-shape'] = "circle(closest-corner at 20px 50px)" should set the property valuePasses
e.style['border-shape'] = "circle(farthest-corner at center)" should set the property valuePasses
e.style['border-shape'] = "ellipse(closest-corner farthest-corner at 20px 50px)" should set the property valuePasses
e.style['border-shape'] = "polygon(10px 10px, 100px 10px, 10px 100px)" should set the property valuePasses
e.style['border-shape'] = "shape(from 0px 0px, hline to 100px, vline to 100px, close)" should set the property valuePasses
e.style['border-shape'] = "circle() circle()" should set the property valuePasses
e.style['border-shape'] = "circle() polygon(10px 10px, 100px 10px, 10px 100px)" should set the property valuePasses
e.style['border-shape'] = "circle(closest-corner) ellipse(farthest-corner closest-corner)" should set the property valuePasses
e.style['border-shape'] = "circle() border-box circle() content-box" should set the property valuePasses
e.style['border-shape'] = "circle() margin-box circle() view-box" should set the property valuePasses

Results of the run of 8 November 2026, engine build 1d7a91105. The data behind every page is open.