Skip to content
Skip the list of specifications

css/css-values/

random-invalid.tentative.html

Passes: all 39 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['width'] = "random()" should not set the property valuePasses
e.style['width'] = "random( )" should not set the property valuePasses
e.style['width'] = "random(,)" should not set the property valuePasses
e.style['width'] = "random(1px, )" should not set the property valuePasses
e.style['width'] = "random(,1px)" should not set the property valuePasses
e.style['width'] = "random(1px)" should not set the property valuePasses
e.style['width'] = "random(1px,2px,)" should not set the property valuePasses
e.style['width'] = "random(1px,2px,1px,)" should not set the property valuePasses
e.style['width'] = "random(1px,2px,1px foo)" should not set the property valuePasses
e.style['width'] = "random(foo, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(\"foo\", 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(\"--foo\", 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(element-shared foo, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(element-shared 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(1px, 2px, 1px, element-shared)" should not set the property valuePasses
e.style['width'] = "random(--foo --bar, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(fixed 0.5 element-shared, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(fixed 0.5 auto, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(fixed 0.5 --foo, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(fixed 0.5px, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(fixed 0.5%, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(fixed -1, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(10deg, 20deg)" should not set the property valuePasses
e.style['width'] = "random(element-scoped --foo --bar, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(element-scoped uawidth, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(foo element-scoped, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(element-scoped 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(--foo element-scoped element-scoped, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(property-scoped --foo ua-width, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(property-scoped ua-width-1, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(--foo element-scoped property-scoped element-scoped, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(foo property-scoped, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(property-scoped 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(property-scoped property-index-scoped, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(property-index-scoped --foo property-scoped, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(property-index-scoped ua-width-1, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(foo property-index-scoped, 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(property-index-scoped 1px, 2px)" should not set the property valuePasses
e.style['width'] = "random(property-index-scoped property-scoped, 1px, 2px)" should not set the property valuePasses

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