Click here to download the Blitz Browser!

WPT

wpt / css / css-values / random-item-computed.html

Spec: CSS Values ↗

Runs: Chrome 155.0.8039.0 (wpt@d0c38285b, 2026-09-03) | Firefox 157.0a1 (wpt@ed1909ed6, 2026-09-03) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-a9df8 (wpt@0ea9f2aac, 2026-09-03) | Servo Servo 0.6 (wpt@09159dcb3, 2026-09-02) | Blitz 188486089 (wpt@a95401e4e, 2026-09-02)

View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi

ChromeFirefoxSafariLadybirdServoBlitz
Total5/373/3735/375/375/373/37
SubtestChromeFirefoxSafariLadybirdServoBlitz
Property color value 'random-item(fixed 0, rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'FAILFAILPASSFAILFAILFAIL
Property color value 'random-item(fixed 0.5, rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'FAILFAILPASSFAILFAILFAIL
Property color value 'random-item(fixed 0.999, rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'FAILFAILPASSFAILFAILFAIL
Property color value 'random-item(fixed 1, rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'FAILFAILPASSFAILFAILFAIL
Property color value 'random-item(fixed 0, rgb(1, 0, 0))'FAILFAILPASSFAILFAILFAIL
Property color value 'random-item(auto, rgb(1, 0, 0))'FAILFAILPASSFAILFAILFAIL
Property color value 'random-item(auto, rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'FAILFAILPASSFAILFAILFAIL
Property color value 'random-item(--key, rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'FAILFAILPASSFAILFAILFAIL
Property color value 'random-item(element-scoped, rgb(1, 0, 0), rgb(0, 1, 0))'FAILFAILPASSFAILFAILFAIL
Property color value 'random-item(--key element-scoped, rgb(1, 0, 0), rgb(0, 1, 0))'FAILFAILPASSFAILFAILFAIL
Property font-family value 'random-item(fixed 0, {Times, serif}, {Arial, sans-serif})'FAILFAILPASSFAILFAILFAIL
Property font-family value 'random-item(fixed 0.999, {Times, serif}, {Arial, sans-serif})'FAILFAILPASSFAILFAILFAIL
Property font-family value 'random-item(fixed 0, { Times, serif }, { Arial, sans-serif })'FAILFAILPASSFAILFAILFAIL
Property font-family value 'random-item(fixed 0.999, { Times, serif }, { Arial, sans-serif })'FAILFAILPASSFAILFAILFAIL
Property color value 'random-item(fixed calc(0.5), rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'FAILFAILPASSFAILFAILFAIL
Property color value 'random-item(fixed calc(1 / 4), rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'FAILFAILPASSFAILFAILFAIL
Property color value 'random-item(fixed 1, rgb(1, 0, 0))'FAILFAILPASSFAILFAILFAIL
Property color value 'random-item(element-scoped --key, rgb(1, 0, 0), rgb(0, 1, 0))'FAILFAILPASSFAILFAILFAIL
random-item() with a var()-derived <random-key> resolvesFAILFAILPASSFAILFAILFAIL
random-item() selecting var(--a) into a registered <length>FAILFAILPASSFAILFAILFAIL
random-item() selecting var(--b) into a registered <length>FAILFAILPASSFAILFAILFAIL
random-item() into a registered <length>FAILFAILPASSFAILFAILFAIL
random-item() into a registered <number>FAILFAILPASSFAILFAILFAIL
Selecting an empty item is invalid at computed-value timeFAILFAILPASSFAILFAILFAIL
random-item() selection is stable across style recalculationPASSPASSPASSPASSPASSPASS
Independent auto random-item() instances each resolve to a valid itemFAILFAILPASSFAILFAILFAIL
random-item() with an auto <random-key> is element-scopedFAILFAILPASSFAILFAIL
random-item() with a bare element-scoped <random-key> is not shared between elementsFAILFAILPASSFAILFAIL
random-item() with a <dashed-ident> element-scoped <random-key> is not shared between elementsFAILFAILPASSFAILFAIL
random-item() with a <dashed-ident> <random-key> is shared between elementsFAILFAILPASSFAILFAIL
A shared dashed-ident key selects the same item across propertiesPASSPASSPASSPASSPASSPASS
random() and random-item() using auto in one declaration both resolveFAILFAILPASSFAILFAILFAIL
A bare element-scoped key selects the same item across random-item() instancesPASSPASSPASSPASSPASSPASS
random() and random-item() share the base value for a bare element-scoped keyFAILFAILPASSFAILFAILFAIL
auto random() and auto random-item() in one value do not share a base valuePASSFAILPASSPASS
auto random() substituted through var() does not share a base value with random-item()PASSFAILPASSPASS
Property color value 'random-item(--, rgb(1, 0, 0), rgb(0, 1, 0))'FAILFAILPASSFAILFAILFAIL