Skip to content
Skip the list of specifications

css/css-values/

random-item-invalid.html

Passes: all 14 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['font-family'] = "random-item()" should not set the property valuePasses
e.style['font-family'] = "random-item( )" should not set the property valuePasses
e.style['font-family'] = "random-item(auto)" should not set the property valuePasses
e.style['font-family'] = "random-item(, serif, sans-serif)" should not set the property valuePasses
e.style['font-family'] = "random-item(auto, !)" should not set the property valuePasses
e.style['font-family'] = "random-item(auto, ;)" should not set the property valuePasses
e.style['font-family'] = "random-item(auto, })" should not set the property valuePasses
e.style['font-family'] = "random-item(auto, ])" should not set the property valuePasses
e.style['font-family'] = "random-item(auto, {serif)" should not set the property valuePasses
e.style['font-family'] = "random-item(auto, serif})" should not set the property valuePasses
e.style['font-family'] = "random-item(auto, {Times, serif)" should not set the property valuePasses
e.style['font-family'] = "random-item({auto, serif, sans-serif)" should not set the property valuePasses
e.style['font-family'] = "random-item(auto, {Times, serif} extra)" should not set the property valuePasses
e.style['font-family'] = "random-item(auto, extra {Times, serif})" should not set the property valuePasses

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