css/css-values/
random-item-serialize.html
Passes: all 15 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.
| Assertion | Expected | Got | Verdict |
|---|---|---|---|
e.style['font-family'] = "random-item(auto, serif, sans-serif)" should set the property value | Passes | ||
e.style['font-family'] = "random-item(--x, serif, sans-serif)" should set the property value | Passes | ||
e.style['font-family'] = "random-item(element-scoped, serif, sans-serif)" should set the property value | Passes | ||
e.style['font-family'] = "random-item(--x element-scoped, serif, sans-serif)" should set the property value | Passes | ||
e.style['font-family'] = "random-item(element-scoped --x, serif, sans-serif)" should set the property value | Passes | ||
e.style['font-family'] = "random-item(fixed 0, serif, sans-serif)" should set the property value | Passes | ||
e.style['font-family'] = "random-item(fixed 0.5, serif, sans-serif)" should set the property value | Passes | ||
e.style['font-family'] = "random-item(fixed 1, serif, sans-serif)" should set the property value | Passes | ||
e.style['font-family'] = "random-item(auto, serif)" should set the property value | Passes | ||
e.style['font-family'] = "random-item(auto, {Times, serif}, {Arial, sans-serif})" should set the property value | Passes | ||
e.style['font-family'] = "random-item(auto, {Times, serif}, sans-serif, {monospace})" should set the property value | Passes | ||
e.style['font-family'] = "random-item(auto, { Times, serif }, { Arial, sans-serif })" should set the property value | Passes | ||
e.style['color'] = "random-item(auto, red, green, blue)" should set the property value | Passes | ||
e.style['width'] = "random-item(auto, 1px, 2px, 3px)" should set the property value | Passes | ||
e.style['width'] = "random-item(--x, var(--a), var(--b))" should set the property value | Passes |
Results of the run of 8 November 2026, engine build 1d7a91105. The data behind every page is open.