Skip to content
Skip the list of specifications

css/css-values/

random-item-computed.html

Passes: all 18 assertions match; 2 more could not be judged

A parsing and computed-value check: each value the parser must accept or reject, and what it computes to.

Why some could not be judgedAssertions
No assertion with written values to accept or reject1
A script changes the document first1

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
Property color value 'random-item(fixed 0, rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'Passes
Property color value 'random-item(fixed 0.5, rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'Passes
Property color value 'random-item(fixed 0.999, rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'Passes
Property color value 'random-item(fixed 1, rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'Passes
Property color value 'random-item(fixed 0, rgb(1, 0, 0))'Passes
Property color value 'random-item(auto, rgb(1, 0, 0))'Passes
Property color value 'random-item(auto, rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'Passes
Property color value 'random-item(--key, rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'Passes
Property color value 'random-item(element-scoped, rgb(1, 0, 0), rgb(0, 1, 0))'Passes
Property color value 'random-item(--key element-scoped, rgb(1, 0, 0), rgb(0, 1, 0))'Passes
Property font-family value 'random-item(fixed 0, {Times, serif}, {Arial, sans-serif})'Passes
Property font-family value 'random-item(fixed 0.999, {Times, serif}, {Arial, sans-serif})'Passes
Property font-family value 'random-item(fixed 0, { Times, serif }, { Arial, sans-serif })'Passes
Property font-family value 'random-item(fixed 0.999, { Times, serif }, { Arial, sans-serif })'Passes
Property color value 'random-item(fixed calc(0.5), rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'Passes
Property color value 'random-item(fixed calc(1 / 4), rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'Passes
Property color value 'random-item(fixed 1, rgb(1, 0, 0))'Passes
Property color value 'random-item(element-scoped --key, rgb(1, 0, 0), rgb(0, 1, 0))'Passes

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