- From: Simon Fraser via GitHub <sysbot+gh@w3.org>
- Date: Wed, 19 Feb 2025 01:17:01 +0000
- To: public-css-archive@w3.org
smfr has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-values-5] Maybe min, max and step should not be part of the random-caching-key == Currently, CSS Values 5 says that the [min, max and step are part of the `random-caching-key`](https://www.w3.org/TR/css-values-5/#random-caching). However, this prevents some possibly useful techniques where an element shares the same random value, but with different min, max and step with another property on the same element, or with another element. Conceptually, I would expect that the underlying 0-1 random number is sampled based only on the `dashed-ident` or `per-element` keyword, and then min, max and step are just math applied to that underlying value. Consider ``` .box { background-color: blue; height: random(per-element, 50px, 100px); width: random(per-element, 50px, 200px); } ``` I want this box to have a random size, but always a 2/1 aspect ratio. With the current spec, width and height get their own random values. Another example might be that you have two elements that want a width based on a single random value, but they quantize that value in different ways. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11742 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 19 February 2025 01:17:02 UTC