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
311355
Invert random() caching behavior to match spec
https://bugs.webkit.org/show_bug.cgi?id=311355
Summary
Invert random() caching behavior to match spec
fantasai
Reported
2026-04-02 10:10:40 PDT
The CSS spec for random() changed so that the `--foo` in `random(--foo)` is matched globally to the document rather than scoped to the element. This is the opposite of the behavior shipping in WebKit, and will create significant compat problems for this feature if it's not updated soon. See
https://github.com/w3c/csswg-drafts/issues/13132#issuecomment-3998898114
and
https://github.com/w3c/csswg-drafts/commit/54b0b4f123ca2dd6c1af33bfc08eca64cf8e1640
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-04-02 10:10:46 PDT
<
rdar://problem/173943833
>
fantasai
Comment 2
2026-04-03 00:21:03 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/61964
EWS
Comment 3
2026-04-03 13:02:34 PDT
Committed
310532@main
(e3d530f9ce57): <
https://commits.webkit.org/310532@main
> Reviewed commits have been landed. Closing PR #61964 and removing active labels.
EWS
Comment 4
2026-04-06 20:44:40 PDT
Committed
305413.621@safari-7624-branch
(4542967296eb): <
https://commits.webkit.org/305413.621@safari-7624-branch
> Reviewed commits have been landed. Closing PR #4894 and removing active labels.
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