Skip to content
Skip the list of specifications

css/css-values/

calc-nesting.html

Passes: all 7 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['left'] = "calc(20px + calc(80px))" should set the property valuePasses
e.style['left'] = "calc(calc(100px))" should set the property valuePasses
e.style['left'] = "calc(calc(2) * calc(50px))" should set the property valuePasses
e.style['left'] = "calc(calc(150px*2/3))" should set the property valuePasses
e.style['left'] = "calc(calc(2 * calc(calc(3)) + 4) * 10px)" should set the property valuePasses
e.style['left'] = "calc(50px + calc(40%))" should set the property valuePasses
e.style['border'] = "calc(calc(10px)) solid pink" should set the property valuePasses

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