Bug 311355

Summary: Invert random() caching behavior to match spec
Product: WebKit Reporter: fantasai <fantasai.bugs>
Component: CSSAssignee: fantasai <fantasai.bugs>
Status: RESOLVED FIXED    
Severity: Normal CC: koivisto, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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
Radar WebKit Bug Importer
Comment 1 2026-04-02 10:10:46 PDT
fantasai
Comment 2 2026-04-03 00:21:03 PDT
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.