Re: [csswg-drafts] [css-values-5] Caching CSS random() values in if() (#13662)

Did I understood your proposal correctly. So let's say we have:

```
--rand: random(2)
--x: random(1) var(--rand)  if(style(--rand): random(3); else: random(4)) if(style(random(5) = random(6)): random(7); else: random(8))
```

Then will we have following random-ua-idents?

```
random(1) -> ua---x-1
var(--rand) -> ua---x-2
style(--rand): -> ua--early---x-1
random(3) -> ua---x-3
random(4) -> ua---x-3
random(5) -> ua-early---x-2
random(6) -> ua-early---x-3
random(7) -> ua---x-4
random(8) -> ua---x-4
```

-- 
GitHub Notification of comment by tursunova
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13662#issuecomment-4304078502 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 23 April 2026 11:43:40 UTC