Re: [csswg-drafts] [css-values-5] Maybe min, max and step should not be part of the random-caching-key (#11742)

The keyword can't mention selectors, as it's not about that - completely different style rules can still share the same random base. And because there's already another notion of "matching" being employed (by name), I think this probably has to include "element" in it to indicate that's the axis of matching.

Thus the current name `match-element` ^_^ Note that this keyword pattern (`verb-noun`) usually omits prepositions, so the relationship can be ambiguous with a naive reading; our goal is usually just to express the vibe.

There's another complicating issue here - if we went with a `preposition-noun` keyword pattern, like `across-elements`, then when actually *used* the eye is drawn to the function name so it reads as `random across elements`, which can invert the meaning from what's intended. This was used *intentionally* in the previous version: "random per element" was exactly the meaning I wanted to convey.

Hm, intentionally breaking that connection by starting with the noun might be workable, then. `element-shared` does sound pretty good in that case.

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


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

Received on Monday, 10 March 2025 16:20:19 UTC