WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
317702
[css-values-5 random-item()] computed-value resolution (parse <random-key>, select item)
https://bugs.webkit.org/show_bug.cgi?id=317702
Summary
[css-values-5 random-item()] computed-value resolution (parse <random-key>, s...
joanne_pan2
Reported
2026-06-23 17:07:28 PDT
Subtask of
rdar://179937274
(Implement support for random-item()). Follow-up to the parse-time PR (
rdar://180429446
). At computed-value time, resolve random-item() per the full grammar: substitute the argument grammar, parse the first argument as <random-key>, select one item, and substitute it. Implemented in Style::SubstitutionResolver, modeled on substituteAttrFunction (substitute argument grammar first, then apply the full grammar) per Antti's review on PR #67400. Scope (matches random()'s currently-supported <random-key> subset): auto | <dashed-ident> | element-scoped | fixed <number [0,1]> property-scoped / property-index-scoped / <random-ua-ident> are a separate follow-up, in sync with random().
Attachments
Add attachment
proposed patch, testcase, etc.
joanne_pan2
Comment 1
2026-06-23 17:07:34 PDT
rdar://180457609
joanne_pan2
Comment 2
2026-06-29 10:07:22 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/68097
EWS
Comment 3
2026-07-06 16:41:45 PDT
Committed
316589@main
(a2a052667335): <
https://commits.webkit.org/316589@main
> Reviewed commits have been landed. Closing PR #68097 and removing active labels.
joanne_pan2
Comment 4
2026-07-09 14:16:50 PDT
Submitted web-platform-tests pull request:
https://github.com/web-platform-tests/wpt/pull/61201
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug