WPT
wpt / css / css-values / random-item-valid.html
Spec: CSS Values ↗
Runs: Chrome 155.0.8039.0 (wpt@a4fcd77aa, 2026-09-03) | Firefox 157.0a1 (wpt@cc4d45aa0, 2026-09-03) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-a9df8 (wpt@9b4cabf6d, 2026-09-03) | Servo Servo 0.6 (wpt@7e3d005d7, 2026-09-03) | Blitz 188486089 (wpt@a95401e4e, 2026-09-02)
View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 1/21 | 1/21 | 21/21 | 1/21 | 1/21 | 1/21 |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| e.style['font-family'] = "random-item(auto, serif)" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(auto, serif, sans-serif, monospace)" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(auto ,serif ,sans-serif)" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(auto , serif , sans-serif)" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(auto, )" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(auto, serif,)" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(auto, , serif)" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(auto, ,)" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(auto, {Times, serif}, {Arial, sans-serif})" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(auto, {Times, serif}, sans-serif, {monospace})" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(auto, {Times, serif})" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(auto, { Times, serif }, { Arial, sans-serif })" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(auto, {Times, serif}, { Arial, sans-serif })" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(auto, { monospace })" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(--x, serif, sans-serif)" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(fixed 0.5, serif, sans-serif)" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(serif, sans-serif)" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(foo, serif, sans-serif)" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(fixed -0.5, serif, sans-serif)" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(property-scoped, serif, sans-serif)" should set the property value | FAIL | FAIL | PASS | FAIL | FAIL | FAIL |
| e.style['font-family'] = "random-item(var(--key), serif, sans-serif)" should set the property value | PASS | PASS | PASS | PASS | PASS | PASS |